[Tutorial] How to create a simple announce cmd[sscanf|| Zcmd]
#24

I fixed it for you @SRB.

pawn Code:
CMD:ann(playerid,params[])
{
    new text[60];
    if(APlayerData[playerid][PlayerLevel] >= 1)//this needs to be at the top.
    if(sscanf(params,"s[60]",text))return SendClientMessage(playerid,0xFF0000,"Usage:/ann [text]");
    SendAdminText(playerid, "{00FF00}/ann", params);
    GameTextForAll(text,3000,3);
    return 1;
}
SendAdminText shows you're using PPC :P
Reply


Messages In This Thread
How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 26.08.2012, 16:17
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Kaperstone - 26.08.2012, 16:18
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by TaLhA XIV - 26.08.2012, 16:33
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Akira297 - 26.08.2012, 16:36
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 26.08.2012, 17:02
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by DeadLy™ - 26.08.2012, 17:05
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by iGetty - 26.08.2012, 17:16
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Kaperstone - 26.08.2012, 18:20
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 26.08.2012, 18:26
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 27.08.2012, 12:03
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by C00K13M0N$73R - 27.08.2012, 12:09
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 27.08.2012, 12:21
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 28.08.2012, 16:02
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Glint - 29.08.2012, 07:10
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 29.08.2012, 10:10
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Cjgogo - 29.08.2012, 13:57
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Smokkr - 29.08.2012, 14:04
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 29.08.2012, 15:08
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by irfu - 30.08.2012, 08:48
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 31.08.2012, 06:33
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Jeth - 31.08.2012, 07:48
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by Lordzy - 31.08.2012, 12:08
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by SRB - 25.10.2013, 23:41
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by DobbysGamertag - 26.10.2013, 00:11
Re: How to create a simple announce cmd[sscanf|| Zcmd] - by SRB - 26.10.2013, 00:46

Forum Jump:


Users browsing this thread: 1 Guest(s)