Command help[REP+]
#7

pawn Код:
CMD:winner(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFF,"You can not use this command");
    new wid, t3[128];
    new wname[MAX_PLAYER_NAME];
    if(sscanf(params,"u",wid)) return SendClientMessage(playerid,0xFFFFFF,"Usage: /winner [winnerid]");
    if(!IsPlayerConnected(wid)) return SendClientMessage(playerid,0xFFFFFF,"Player is not connected!");
    GetPlayerName(wid, wname, sizeof(wname));
    format(t3, sizeof(t3), "Event Winner is:~w~%s.", wname);
    GameTextForAll(t3, 5000, 0);
    GivePlayerMoney(wid,prize);
    eventinfo[playerid] = 0;
    return 1;
}
Try this.
Reply


Messages In This Thread
Command help[REP+] - by [TMS]Legena - 18.01.2014, 15:50
Re: Command help[REP+] - by rakshith122 - 18.01.2014, 15:54
Re: Command help[REP+] - by [TMS]Legena - 18.01.2014, 16:12
Re: Command help[REP+] - by Riddick94 - 18.01.2014, 16:14
Re: Command help[REP+] - by ProjectMan - 18.01.2014, 16:24
Re: Command help[REP+] - by [TMS]Legena - 18.01.2014, 16:38
Re: Command help[REP+] - by Nourdin - 18.01.2014, 16:40
Re: Command help[REP+] - by [TMS]Legena - 18.01.2014, 16:49
Re: Command help[REP+] - by Nourdin - 18.01.2014, 16:54
Re: Command help[REP+] - by [TMS]Legena - 18.01.2014, 17:06

Forum Jump:


Users browsing this thread: 1 Guest(s)