here's the FS that loads them..
Код:
#include <a_samp>
new Random;
public OnGameModeInit()
{
// NPCS
ConnectNPC("Grove1","grove1");
ConnectNPC("Grove2","grove2");
ConnectNPC("Grove3","grove3");
ConnectNPC("Grove4","grove4");
ConnectNPC("Grove5","grove5");
Random = AddStaticVehicle(420,2044.8854,1473.2106,10.4494,181.3339,6,1); // Makes sure the NPC Spawns
return 1;
}
public OnPlayerSpawn(playerid)
{
if(!IsPlayerNPC(playerid)) return 0;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"Grove1",true)) {
PutPlayerInVehicle(playerid, Random, 0);
SetSpawnInfo( playerid, 0, 106, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
SetPlayerColor(playerid,0x33AA33AA);
}
else if(!strcmp(playername,"Grove2",true)) {
PutPlayerInVehicle(playerid, Random, 0);
SetSpawnInfo( playerid, 0, 105, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
SetPlayerColor(playerid,0x33AA33AA);
}
else if(!strcmp(playername,"Grove3",true)) {
PutPlayerInVehicle(playerid, Random, 0);
SetSpawnInfo( playerid, 0, 107, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
SetPlayerColor(playerid,0x33AA33AA);
}
else if(!strcmp(playername,"Grove4",true)) {
PutPlayerInVehicle(playerid, Random, 0);
SetSpawnInfo( playerid, 0, 105, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
SetPlayerColor(playerid,0x33AA33AA);
}
else if(!strcmp(playername,"Grove5",true)) {
PutPlayerInVehicle(playerid, Random, 0);
SetSpawnInfo( playerid, 0, 106, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
SetPlayerColor(playerid,0x33AA33AA);
}
return 1;
}