[Tutorial] ZCMD: How to make 'forcecmd' command.
#10

aint this?
pawn Code:
CMD:forceradio (playerid, params[])
{
    new str[128], id, input;
    if(sscanf(params, "ui", id,input)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /forceradio [ID][1,2,3]");
    if(!IsPlayerConnected(id))  return SendClientMessage(playerid, COLOR_RED, "Player is not connected!");
    if(playerid == id)return SendClientMessage(playerid, COLOR_NORMALBLUE, "You forced yourself to to play a radio");
    SendClientMessage(playerid,-1,"You forced a player to play a radio!");
    SendClientMessage(id,-1,"You were forced by an admin to play a radio!");
    cmd_audiomsg(id,input);
    return 1;
}
Reply


Messages In This Thread
ZCMD: How to make 'forcecmd' command. - by bgedition - 13.06.2015, 20:29
Re: ZCMD: How to make 'forcecmd' command. - by kristo - 13.06.2015, 20:52
Re: ZCMD: How to make 'forcecmd' command. - by Konverse - 13.06.2015, 20:55
Re: ZCMD: How to make 'forcecmd' command. - by bgedition - 13.06.2015, 20:55
Re: ZCMD: How to make 'forcecmd' command. - by kristo - 13.06.2015, 20:57
Re: ZCMD: How to make 'forcecmd' command. - by bgedition - 13.06.2015, 21:17
Re: ZCMD: How to make 'forcecmd' command. - by JaydenJason - 14.06.2015, 14:05
Re : ZCMD: How to make 'forcecmd' command. - by Dutheil - 15.06.2015, 12:30
Re: ZCMD: How to make 'forcecmd' command. - by Alpay0098 - 15.06.2015, 17:38
Re: ZCMD: How to make 'forcecmd' command. - by gurmani11 - 19.07.2015, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)