help me with make /kill , /reclass , /respawn
#4

Add this under OnPlayerCommandText callback:

pawn Код:
if (strcmp("/reclass", cmdtext, true, 10) == 0)
    {
    ForceClassSelection(playerid);
    TogglePlayerSpectating(playerid, true);
    TogglePlayerSpectating(playerid, false);
    return 1;
}
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid, -1);
    return 1;
}
    if (strcmp("/respawn", cmdtext, true, 10) == 0)
    {
    SetPlayerHealth(playerid, -1);
    return 1;
}
Reply


Messages In This Thread
help me with make /kill , /reclass , /respawn - by MeysamOlapour - 25.05.2013, 19:10
Re: help me with make /kill , /reclass , /respawn - by RaZzZzoR - 25.05.2013, 19:13
Re: help me with make /kill , /reclass , /respawn - by Kindred - 25.05.2013, 19:13
Re: help me with make /kill , /reclass , /respawn - by Areax - 25.05.2013, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)