All pastes #955754 Raw Edit

Untitled

public text v1 · immutable
#955754 ·published 2008-03-24 20:42 UTC
rendered paste body
      public OnGameModeInit()
{
      
        new string[MAX_PLAYER_NAME];
        format(string,sizeof(string),"%d.loc",368);
        if(!fexist(string))
        {
        buycar1 = AddStaticVehicleEx(580,-781.5827,2748.7913,45.4630,91.4011,81,81,-1); //     
        }
	    if(fexist(string))
	    {
	    new arrCoords[4][64];
	    new strFromFile2[256];
	    new File: file = fopen(string, io_read);
	    if (file)
	    {
	    fread(file, strFromFile2);
	    split(strFromFile2, arrCoords, ',');
	    new Float:X = strval(arrCoords[0]);
	    new Float:Y = strval(arrCoords[1]);
	    new Float:Z = strval(arrCoords[2]);
	    new Float:R = strval(arrCoords[3]);
	    buycar1 = AddStaticVehicleEx(580,X,Y,Z,R,0,0,-1); // Sultan
	    fclose(file);
	    }
	    }
       return 1;
}