How to ... ?
#2

untested but should work

pawn Код:
CMD:pay(playerid,params[])
{
    new amount, name[MAX_PLAYER_NAME];
    if(sscanf(params,"s[24]d",name,amount)) return SendClientMessage(playerid,COLOR_GREY,"use: /pay name amount (note this command doesn't do anything)");
    new s[64];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    format(s,sizeof(s),"%s takes out some money and gives it to %s",pname,name);
    ProxDetector(40.0, playerid, s, COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION,COLOR_ACTION);
}
Reply


Messages In This Thread
How to ... ? - by Anzhelov - 25.02.2011, 07:42
Re: How to ... ? - by cessil - 25.02.2011, 08:56
Re: How to ... ? - by Hiddos - 25.02.2011, 09:45
Re: How to ... ? - by Anzhelov - 25.02.2011, 16:02
Re: How to ... ? - by Mean - 25.02.2011, 19:47
Re: How to ... ? - by maramizo - 25.02.2011, 20:10
Re: How to ... ? - by Anzhelov - 25.02.2011, 20:14
Re: How to ... ? - by Stigg - 25.02.2011, 20:16
Re: How to ... ? - by Mean - 25.02.2011, 20:17
Re: How to ... ? - by Anzhelov - 25.02.2011, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)