command problem
#2

pawn Код:
dcmd_swap(playerid,params[])
{
    #pragma unused params
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"You are not adminstrator");
    if(Swapas == 0)
    {
        Swapas = 1;
        SendClientMessage(playerid, COLOR_LIME, "Auto swap have been turned off");
    }
    else if(Swapas == 1) //  <--------------- changed this line
    {
        Swapas = 0;
        SendClientMessage(playerid, COLOR_LIME, "Auto swap have been turned on");
    }
    return 1;
}
Reply


Messages In This Thread
command problem - by jaksimaksi - 12.08.2010, 09:18
Re: command problem - by MadeMan - 12.08.2010, 09:27

Forum Jump:


Users browsing this thread: 1 Guest(s)