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

ey guys i need help
/kill : kill the player
/reclass: kill the player and give to he/she to change his class
/respawn: kill again

give me Code to add in pawno plz
Reply
#2

CMD:kill( playerid, params[] )
{
SetPlayerHealth( playerid, 0 );
return 1;
}

CMD:reclass( playerid, params[] )
{
ForceClassSelection( playerid );
return 1;
}

CMD:respawn( playerid, params[] )
{
SetPlayerHealth( playerid, 0 );
return 1;
}
Reply
#3

How about you do it yourself and not rely on everyone to make it for you.

And next time, post in the correct place, under Request Scripts.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)