[Tutorial] ZCMD + sscanf
#14

Waarom werkt dit niet?

Код:
CMD:god(playerid, params[]) 
{ 
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"Mag jij niet!."); 
    if(GodMode[playerid] == 0) //god mode not set, lets set it 
    { 
        SetPlayerHealth(playerid, INFINITY);    //set the health to infinity 
        GodMode[playerid] = 1;    //set godmode to true 
        SendClientMessage(playerid, 0xFF0000FF, "Godmode aan"); 
    } 
    else if(GodMode[playerid] == 1) //god mode set .. lets unset it 
    { 
        SetPlayerHealth(playerid, 100.0);    //set health to 100% 
        GodMode[playerid] = 0;    //set godmode to false 
        SendClientMessage(playerid, 0xFF0000FF, "Godmode uit"); 
    } 
    return 1; 
}
Zegt gewoon unknown command
Reply


Messages In This Thread
ZCMD + sscanf - by Danny - 12.07.2011, 19:39
Re: ZCMD + sscanf - by Jantjuh - 12.07.2011, 22:05
Re: ZCMD + sscanf - by Danny - 13.07.2011, 09:02
Re: ZCMD + sscanf - by dahley5 - 01.09.2011, 23:10
Re: ZCMD + sscanf - by Danny - 02.09.2011, 09:10
Re: ZCMD + sscanf - by Henkie - 26.09.2011, 16:04
Re: ZCMD + sscanf - by robintjeh - 26.09.2011, 16:12
Re: ZCMD + sscanf - by Henkie - 26.09.2011, 16:36
Re: ZCMD + sscanf - by Wesley221 - 26.09.2011, 16:44
Re: ZCMD + sscanf - by Henkie - 26.09.2011, 17:35
Re: ZCMD + sscanf - by mickos - 04.05.2012, 08:45
Re: ZCMD + sscanf - by Vinninho - 11.07.2012, 13:28
Re: ZCMD + sscanf - by Danny - 13.07.2012, 17:26
Re: ZCMD + sscanf - by nickbouwhuis - 11.10.2012, 14:36
Re: ZCMD + sscanf - by TheDeadlyDutchi - 11.10.2012, 15:04
Re: ZCMD + sscanf - by IgorLuiz - 02.07.2015, 01:20

Forum Jump:


Users browsing this thread: 1 Guest(s)