07.06.2011, 19:40
PHP код:
//COLOQUE ISTO NO TOPO DO GAME MODE \/
new Bomba[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/comprarbomba", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid)<50000)return SendClientMessage(playerid, AZULCLARINHO,"{FF5959}| ERRO |{FFFFFF} Vocк Nгo Tem {FF5959}${FFFFFF}50000!");
SetPlayerAttachedObject(playerid,2,1654,1,0.1000,0.2000,0.0000,0.0,90.0000,180.0000);
GivePlayerMoney(playerid, -50000);
SendClientMessage(playerid, BRANCO,"{FF5959}| INFO |{FFFFFF} Vocк Comprou Uma Bomba!");
Bomba[playerid] ++;
return 1;
}
if(strcmp("/explodirbomba", cmdtext, true, 10) == 0)
{
if(Bomba[playerid] == 0) return SendClientMessage(playerid, BRANCO,"Vocк nгo comprou nenhuma bomba !");
Bomba[playerid] --;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z, 11, 10.0);
SendClientMessage(playerid, BRANCO,"{FF5959}| INFO |{FFFFFF} Vocк Se Explodiu! {FF5959}RAIIRAIRAIIRAIAR{FFFFFF}");
return 1;
}
return 0;
}