27.12.2013, 02:25
pawn Код:
if(strcmp(cmd, "/procurarcel", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /procurarcel [id]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new Infocel[65];
format(Infocel,sizeof(Infocel),"Hey o celular dele й %d",PlayerInfo[giveplayerid][pPnumber]);
SendClientMessage(playerid,-1,Infocel);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Esse nгo й um jogador ativo !");
}
}
return 1;
}