Quote:
Originally Posted by feliperch
Tenso, muito tenso
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/armas", true))
{
if(IsPlayerInRangeOfPoint(playerid,10.0,-36.0648,2349.6638,24.3026)
{
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else SendClientMessage(playerid,-1,"ERRO: Vocк nгo estб no local para comprar armas");
return true;
}
return false;
}
|
Quote:
Originally Posted by Dark.Angel
PHP код:
if(strcmp(cmd, "/armas", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, -36.0648,2349.6638,24.3026))
{
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!");
SendClientMessage(playerid,-1,"MP5 - /MP5");
SendClientMessage(playerid,-1,"AK47 - /AK47");
SendClientMessage(playerid,-1,"9mm - /9mm");
SendClientMessage(playerid,-1,"ShotGun - /ShotGun");
SendClientMessage(playerid,-1,"M4 - /M4");
SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
else
{
SendClientMessage(playerid,-1,"Vocк nгo estб na area de compra de armas!");
}
return 1;
}
|
Quote:
Originally Posted by Ricop522
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[0x3C*3]; if(strcmp(cmd, "/armas", true) == 0) { if(!IsPlayerInRangeOfPoint(playerid, 15.0, -36.0648,2349.6638,24.3026)) return SendClientMessage(playerid, -1, "<!> Vocк nгo estб na posiзгo de compra de armas!"); SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); SendClientMessage(playerid,-1,"Escolha sua Arma - $1000 cada!"); SendClientMessage(playerid,-1,"MP5 - /MP5"); SendClientMessage(playerid,-1,"AK47 - /AK47"); SendClientMessage(playerid,-1,"9mm - /9mm"); SendClientMessage(playerid,-1,"ShotGun - /ShotGun"); SendClientMessage(playerid,-1,"M4 - /M4"); SendClientMessage(playerid,-1,"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"); return 0x01; } return 0x0; }
Identado e fixado.
|
Vlws ai , consegui aqui, mals ai kk, so novato ainda com essas coisas ;s