Newbie Command Help
#4

Here it is:

You need "zcmd" include and "sscanf2" include.
Also sscanf plugin.
PHP код:
CMD:n(playeridparams[])
{
    new 
msg[128], result[128];
    if(
sscanf(params,"s[128]"result)) return SendClientMessage(playerid, -1"USAGE: /n [text]");
    new 
pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNamesizeof(pName));//    )
    
format(msgsizeof(msg), "[NEWBIE]: %s - %s"pNameresult);//pName
    
SendClientMessageToAll(COLOR_LIMEmsg);
    return 
1;

Reply


Messages In This Thread
Newbie Command Help - by Stupid - 05.07.2013, 03:04
Re: Newbie Command Help - by EiresJason - 05.07.2013, 03:29
Re: Newbie Command Help - by Stupid - 05.07.2013, 03:41
Re: Newbie Command Help - by ThePhenix - 05.07.2013, 03:48
Re: Newbie Command Help - by EiresJason - 05.07.2013, 03:49

Forum Jump:


Users browsing this thread: 1 Guest(s)