30.09.2010, 14:11
pawn Код:
new AdminCars[4]; // Defina isto no topo do GM se tiver 9 carros vocк pхe 10,se tiver 2 carros vocк pхe 3 e assim...
pawn Код:
public OnGameModeInit()
{
AdminCars[0] = AddStaticVehicleEx(496,1660.1147,-1611.1470,13.2624,358.9430,124,103,90000);
AdminCars[1] = AddStaticVehicleEx(411,1650.9912,-1611.0281,13.2893,0.4947,105,107,90000);
AdminCars[2] = AddStaticVehicleEx(429,1642.2440,-1611.2413,13.2931,359.9989,126,126,90000);
AdminCars[3] = AddStaticVehicleEx(424,1632.1814,-1610.8914,13.4915,359.4896,1,0,90000);
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{ if(vid==AdminCars[0]||vid==AdminCars[1]||vid==AdminCars[2]||vid==AdminCars[3])
{
if(PlayerInfo[playerid][pAdmin] == 1) { }
else
{
SendClientMessage(playerid,COLOR_GREY," Vocк nгo й Admin!"); // Mostra a msg pro cara
RemovePlayerFromVehicle(playerid);//Tira o cara do veiculo
TogglePlayerControllable(playerid, 1);//deixa ele com movimento (playerid, 0) deixa ele congelado
}
}