Quote:
Originally Posted by [O.z]Caroline
MatrixBorn, para quк usar IsPlayerConnected ?
pawn Код:
if(!strcmp(cmdtext, "/delveh", true)) { if(PlayerInfo[playerid][pAdmin] >= 4) return SendClientMessage(playerid, COLOR_GREY, "Sem Autorizaзгo"); if(IsPlayerInAnyVehicle(playerid)) { DestroyVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, COLOR_GREY, "Veiculo destruido!"); } return 1; } if(!strcmp(cmdtext, "/spawn", true)) { if(PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, COLOR_GREY, "Sem Autorizaзгo");
if(IsPlayerInAnyVehicle(playerid)) { RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(GetPlayerVehicleID(playerid)); } return 1; }
|
Vou testar, rep para ambos, mas aн, ninguйm sabe como ajeitar o portгo lб? sem a variavel ele funfa de boa