pawn Код:
new TrancarGeral[MAX_PLAYERS];
if(strcmp(cmdtext, "/trancar", true) == 0)
{
if(TrancarGeral[playerid] = 0)
{
if(TrancarGeral[playerid] = 1) return SendClientMessage(playerid, 0xd6deacAA,"** Seus veiculos jб estгo trancados.");
new vehicleid = GetPlayerVehicleID(playerid);
for( new i=0;i<=MAX_PLAYERS;i++)
{
if(i!= playerid)
{
if(FUNCAO DE CRIAR VEICULOS)
{
TrancarGeral[i] = 1
SetVehicleParamsForPlayer(vehicleid, FUNCAO DE CRIAR VEICULOS, 0, 1);
GameTextForPlayer(playerid,"Todos seus veiculos foram trancados!",3000,3);
}
}
}
return SendClientMessage(playerid, 0xd6deacAA, "[INFO]: Veiculos trancados"), PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}