How would I make a /reclass command?
#1

Hey guys! How would I make a /reclass command,
I think it would look something like this:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/reclass", cmdtext, true, 10) == 0)
	{
		SetPlayerPos //idk :P
		return 1;
	}
Reply
#2

So what is the commad supposed to do?
Reply
#3

I'm guessing force the player back to spawn selection?
Reply
#4

When they type /reclass it takes them back to where they can choose the skin/class.
Reply
#5

pawn Код:
if(!strcmp(cmdtext, "/class", true))
{
    ForceClassSelection(playerid);
    SetPlayerHealth(playerid,0);
    return 1;
}
Wiki is your friend: https://sampwiki.blast.hk/wiki/ForceClassSelection
Reply
#6

Awesome thanks man
Reply
#7

Quote:
Originally Posted by Conroy
Посмотреть сообщение
True that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)