Need Help
#1

Who can help me with this

PHP код:
CMD:pay(playeridparams[])
{
  new 
otheridcash;
  if (
sscanf(params"dd"otheridcash)) SendClientMessage(playerid0xFF0000AA"Usage: /pay [ID] [Cash]");
  else
  {
    if(
GetPlayerMoney(playerid) > cashSendClientMessage(playeridCOLOR_RED"You don't have that much!");
    else if(!
IsPlayerConnected(otherid)) SendClientMessage(playeridCOLOR_RED"That PlayerID is not connected!");
    else if(
otherid == playeridSendClientMessage(playeridCOLOR_RED"It is pointless to pay yourself..");
    else
    {
      
GivePlayerMoney(playerid, -cash);
      
GivePlayerMoney(otheridcash);
    }
  }
  return 
1;

help with this command to can work in Range 5 metre's
need for RP
Reply


Messages In This Thread
Need Help - by rumen98 - 27.07.2012, 10:57
Re: Need Help - by Devilxz97 - 27.07.2012, 10:59
Re: Need Help - by rumen98 - 27.07.2012, 11:01
Re: Need Help - by Ranama - 27.07.2012, 11:04
Re: Need Help - by rumen98 - 27.07.2012, 11:07
Re: Need Help - by rscaerzx - 27.07.2012, 11:12
Re: Need Help - by rumen98 - 27.07.2012, 12:04
Re: Need Help - by avivelkayam - 27.07.2012, 12:14

Forum Jump:


Users browsing this thread: 2 Guest(s)