Phone system - Variables
#5

pawn Код:
IsDialing[MAX_PLAYERS]; // When typing Call command.
IsCalling[MAX_PLAYERS]; // When remote Id answers.

command(call, playerid, params[])
{
     new string[128], pID;
     if(sscanf(params, "u", pID)) return SendClientMessage(playerid, 0x0, "Usage : /call [ Player Name / ID ]");
     if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, 0x0, "This player is not connected");
     if(IsDialing[playerid] != -1) return SendClientMessage(playerid, 0x0, "You are already dialing someone!");
     IsDialing[playerid] = pID;
     format(string, sizeof(string), "%s is calling you, type /answer to answer", GetName(playerid));
     SendClientMessage(pID, 0x0, string);
     format(string, sizeof(string), "You are now dialing %s", GetName(pID));
     return SendClientMessage(playerid, 0x0, string);
}
Reply


Messages In This Thread
Phone system - Variables - by Faith - 10.07.2011, 19:52
Re: Phone system - Variables - by Skylar Paul - 10.07.2011, 19:57
Re: Phone system - Variables - by Faith - 10.07.2011, 20:05
Re: Phone system - Variables - by jameskmonger - 10.07.2011, 20:13
Re: Phone system - Variables - by Cameltoe - 10.07.2011, 20:15
Re: Phone system - Variables - by Faith - 10.07.2011, 20:15
Re: Phone system - Variables - by jameskmonger - 10.07.2011, 20:17
Re: Phone system - Variables - by Cameltoe - 10.07.2011, 20:20
Re: Phone system - Variables - by jameskmonger - 10.07.2011, 20:23
Re: Phone system - Variables - by Cameltoe - 10.07.2011, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)