Command help[REP+]
#9

pawn Код:
CMD:winner(playerid, params[])
{
    new wid, tthree[128], wname[MAX_PLAYER_NAME];
    GetPlayerName(wid, wname, sizeof(wname));
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not an administrator.");
    if(!IsPlayerConnected(wid)) return SendClientMessage(playerid, -1, "The player is not connected.");

    format(tthree, sizeof(tthree), "Event Winner is:~w~%s.", wname);
    GameTextForAll(tthree, 5000, 0);
    GivePlayerMoney(wid,prize);
    eventinfo[playerid] = 0;
   
    return 1;
}
Try this and update sscanf2.
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)