zGaming roleplay /hangup
#6

/pickup
Код:
CMD:pickup(playerid, params[])
{
	new string[256];
   	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(!PlayerInfo[playerid][pHasCellphone]) return SendClientMessage(playerid, COLOR_GREY, "You don't own a cellphone.");
	if(!BeingCalled[playerid]) return SendClientMessage(playerid, COLOR_GREY, "Nobody is caling you.");
	format(string, sizeof(string), "* %s answers his cellphone.", RPN(playerid));
	SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
	SendClientMessage(playerid, COLOR_ORANGE, " You have picked up the line.");
	SendClientMessage(Caller[playerid], COLOR_ORANGE, " They pickedup the line.");
	Calling[Caller[playerid]] = 2;
	BeingCalled[playerid] = 2;
	SetTimerEx("PhoneCall", 1000, false, "d", Caller[playerid]);
	return 1;
}
Reply


Messages In This Thread
zGaming roleplay /hangup - by RickDB - 23.03.2013, 20:04
Re: zGaming roleplay /hangup - by reckst4r - 23.03.2013, 21:34
Re: zGaming roleplay /hangup - by RickDB - 23.03.2013, 22:31
Re: zGaming roleplay /hangup - by RickDB - 24.03.2013, 13:13
Re: zGaming roleplay /hangup - by Denying - 24.03.2013, 13:31
Re: zGaming roleplay /hangup - by RickDB - 24.03.2013, 14:24
Re: zGaming roleplay /hangup - by RickDB - 24.03.2013, 16:10
Re: zGaming roleplay /hangup - by RickDB - 25.03.2013, 10:11
Re: zGaming roleplay /hangup - by Denying - 25.03.2013, 10:15
Re: zGaming roleplay /hangup - by RickDB - 25.03.2013, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)