12.09.2012, 20:08
Como eu coloco pra quem usar esse comando perde $, E como coloco pra poder usar ele a cada 60 segundos?
pawn Код:
if (strcmp("/trafico", cmdtext, true, 10) == 0)
{
if (IsPlayerInAnyVehicle(playerid))
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,2177.8599,-980.9830,64.4688);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
new string[128];
format(string, sizeof(string), "O Traficante %s Estб no Morro [Comando /trafico] ", name);
SendClientMessageToAll(-1, string);
SetPlayerInterior(playerid, 0);
}else {
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
SetPlayerPos(playerid,2177.8599,-980.9830,64.4688);
SetPlayerInterior(playerid, 0);
new string[128];
format(string, sizeof(string), "O Traficante %s Estб no Morro [Comando /trafico] ", name);
SendClientMessageToAll(-1, string);
}
return 1;
}