/Spawn Help
#1

Well, I Just Wanted Little Help

When Single Player Type /Spawn When He Log OFF And Join game Again he should spawn their where he type /spawn

Help Please!! I Hope You Guyzz Understand (BAD ENGLISH )
Reply
#2

./SetPlayerPos(playerid,x,y,z); is it that hard -_-
Reply
#3

SpawnPlayer(playerid);

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(!strcmp(cmdtext, "/spawn"))
     {
        SpawnPlayer(playerid);
        return 1;
     }
     return 0;
}
Reply
#4

Код:
dcmd_spawn(playerid, params)
{
SpawnPlayer(playerid);
return 1;
}
Reply
#5

define this

PHP код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 
Then under onplayercommandtext

Код:
dcmd(spawn, 5, cmdtext);
Now in end of script do this!

PHP код:
dcmd_spawn(playeridparams)
{
SpawnPlayer(playerid);
return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)