"[NAME] Does not care" command?
#4

in zcmd and sscanf
pawn Код:
CMD:nocare(playerid, params[])
{
new targetid, pname[MAX_PLAYER_NAME], string[128];
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, -1, "usage : /nocare (playerid/part of name)");
if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid Player");
GetPlayerName(targetid, pname, sizeof(pname));
format(string, sizeof(string), "[%s] Does not give a damn.", pname);
SendClientMessageToAll(-1, string);
return 1;
}
Reply


Messages In This Thread
"[NAME] Does not care" command? - by NicholasA - 13.01.2013, 14:21
Re: "[NAME] Does not care" command? - by u3ber - 13.01.2013, 14:27
Re: "[NAME] Does not care" command? - by NicholasA - 13.01.2013, 14:28
Re: "[NAME] Does not care" command? - by [HK]Ryder[AN] - 13.01.2013, 14:28
Re: "[NAME] Does not care" command? - by [XST]O_x - 13.01.2013, 14:29
Re: "[NAME] Does not care" command? - by NicholasA - 13.01.2013, 14:54

Forum Jump:


Users browsing this thread: 2 Guest(s)