23.03.2010, 17:16
Quote:
Originally Posted by Zimon95
Show more code please.
|
pawn Код:
if(strcmp(cmd, "/call", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /call[numero cellulare]");
return 1;
}
if(PlayerInfo[playerid][pCell] == 0) || PlayerInfo[playerid][pSim] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, " You dont have a cellphone or a SIM Card!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s take out his cellphone.", sendername);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USECELLPHONE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new phonenumb = strval(tmp);
contiunue the script...