18.06.2011, 21:55
PHP код:
//Topo
new j_nazistaCar[7];
//Final do GM
stock NazistaCarros(carid)
{
for(new i = 0; i < sizeof(j_nazistaCar); ++i) {
if(carid == j_nazistaCar[i]) return 0x01;
}
return 0;
}
//Gamemode init
j_nazistaCar[0] = AddStaticVehicleEx(411,2205.9773,-1160.9729,25.4605,89.4259,1,1,10000); // Nazistas(Carros)
j_nazistaCar[1] = AddStaticVehicleEx(415,2205.8762,-1165.0610,25.4587,90.6685,2,2,10000); // Nazistas(Carros)
j_nazistaCar[2] = AddStaticVehicleEx(424,2205.8159,-1169.1504,25.4569,88.5016,3,3,10000); // Nazistas(Carros)
j_nazistaCar[3] = AddStaticVehicleEx(444,2206.3667,-1172.9478,25.4536,91.0852,4,4,10000); // Nazistas(Carros)
j_nazistaCar[4] = AddStaticVehicleEx(461,2216.5420,-1170.4966,25.4536,93.6781,0,0,10000); // Nazistas(Motos)
j_nazistaCar[5] = AddStaticVehicleEx(468,2216.8000,-1161.6123,25.4536,93.0471,2,2,10000); // Nazistas(Motos)
j_nazistaCar[6] = AddStaticVehicleEx(421,2218.0037,-1165.9482,25.4537,90.3672,3,3,10000); // Nazistas(Motos)
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(NazistaCarros(GetPlayerVehicleID(playerid)))
{
if(gTeam[playerid] == NAZISTAS) { }
else { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid, -1, "Vocк nгo й nazista"); }
}
}
}