PHP код:
if(!strcmp(cmdtext, "/arena", true))
{
if(EmGuerra[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Vocк esta na Guerra e nгo pode usar comandos");return 1;}
if(EmDuelo[playerid] == 1){SendClientMessage(playerid, 0xFF6F28AA, "Vocк esta no x1 e nгo pode usar comandos");return 1;}
GameTextForPlayer(playerid,"~w~Isso e a ~n~~r~Guerra Fria o",5000,5);if(IsPlayerInAnyVehicle(playerid)) {new VehicleID;
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 4 , 1);
GivePlayerWeapon(playerid, 24 , 9999);
GivePlayerWeapon(playerid, 26 , 9999);
GivePlayerWeapon(playerid, 28 , 9999);
GivePlayerWeapon(playerid, 34 , 9999);
SetPlayerArmour(playerid, 100);
new string2[256];GetPlayerName(playerid, string, 256);format(string2, 256, "[ Servidor Info ] %s foi em san fierro (/sf)", string);
SendClientMessageToAll(0xB4FC0A96, string2);SetPlayerInterior(playerid,0);}else{new string2[256];GetPlayerName(playerid, string, 256);
format(string2, 256, "[ Servidor Info ] %s Foi Para /arena Venha Se Tiver Coragem", string);SendClientMessageToAll(0xB4FC0A96, string2);SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1359.2371,2159.9529,11.0156);SetPlayerFacingAngle(playerid,179.0);}return 1;}
Oloko Seu Code e meio Confuso ^^
Vo arruma Para Vocк '-'
pawn Код:
if(!strcmp(cmdtext, "/arena", true)) {
if (EmGuerra[playerid] == 1) {
SendClientMessage(playerid, 0xFF6F28AA, "Vocк esta na Guerra e nгo pode usar comandos");
return 1;
}
if (EmDuelo[playerid] == 1) {
SendClientMessage(playerid, 0xFF6F28AA, "Vocк esta no x1 e nгo pode usar comandos");
return 1;
}
ResetPlayerWeapons(playerid);
GameTextForPlayer(playerid, "~w~Isso e a ~n~~r~Guerra Fria o", 5000, 5);
SetPlayerPos(playerid, 1359.2371, 2159.9529, 11.0156);
SetPlayerFacingAngle(playerid, 179.0);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 26, 9999);
GivePlayerWeapon(playerid, 28, 9999);
GivePlayerWeapon(playerid, 34, 9999);
SetPlayerArmour(playerid, 100);
SetPlayerInterior(playerid, 0);
new string2[256];
GetPlayerName(playerid, string, 256);
format(string2, 256, "[ Servidor Info ] %s Foi Para /arena Venha Se Tiver Coragem", string);
SendClientMessageToAll(0xB4FC0A96, string2);
}
return 1;
}
Se der erro avisa .-.