OnPlayerSpawn does not work wtf&? :D
#1

thanks
Reply
#2

is wrong if you going to do a command you need to put everythin to the command section or otherwise it will not work, example i have this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ship", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, -2376.1260,1551.9194,31.8594);
         SendClientMessage(playerid, COLOR_GREY, Welcome To The Ship! The Only Place Where U Can Fish!);
        return 1;
    }
   
    return 0;
}
thats if you want to teleport, i usually have onplayerspawn empty, i use for teleport onplayercommandtext
Reply
#3

Quote:
Originally Posted by »ŁegenĐ«
is wrong if you going to do a command you need to put everythin to the command section or otherwise it will not work, example i have this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ship", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, -2376.1260,1551.9194,31.8594);
        return 1;
    }
    return 0;
}
siriousley, if you have no freaking clue what you're talking about, don't post.

On topic - I think onplayerspawn is only called after people request class.

This is unfortunate for my jail command too. D:
Reply
#4

Well , you only want that if the player is id 1 , then it Teleports to the place ?
Reply
#5

Quote:
Originally Posted by ►►►Peter Corneile◄◄◄
Well , you only want that if the player is id 1 , then it Teleports to the place ?
No, I'm pretty sure he wants to make it if SECRET is set to 1, then it will set his position back to the secret coords.
Reply
#6

Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by »ŁegenĐ«
is wrong if you going to do a command you need to put everythin to the command section or otherwise it will not work, example i have this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ship", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, -2376.1260,1551.9194,31.8594);
        return 1;
    }
    return 0;
}
siriousley, if you have no freaking clue what you're talking about, don't post.

On topic - I think onplayerspawn is only called after people request class.

This is unfortunate for my jail command too. D:
i dont have nothing onplayerspawn i have it empty i do it like i show it
Reply
#7

Quote:
Originally Posted by »ŁegenĐ«
Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by »ŁegenĐ«
is wrong if you going to do a command you need to put everythin to the command section or otherwise it will not work, example i have this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ship", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, -2376.1260,1551.9194,31.8594);
        return 1;
    }
    return 0;
}
siriousley, if you have no freaking clue what you're talking about, don't post.

On topic - I think onplayerspawn is only called after people request class.

This is unfortunate for my jail command too. D:
i dont have nothing onplayerspawn i have it empty i do it like i show it
Yes, but you obviously don't have a CLUE what he wants to do, so gtfo.
Reply
#8

Alright in that case , Kruts you have that rank/class (SECRET) defined in your GM right ? like the player is a SECRET Member or not ?
Reply
#9

Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by »ŁegenĐ«
Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by »ŁegenĐ«
is wrong if you going to do a command you need to put everythin to the command section or otherwise it will not work, example i have this

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/ship", cmdtext, true) == 0)
    {
        SetPlayerPos(playerid, -2376.1260,1551.9194,31.8594);
        return 1;
    }
    return 0;
}
siriousley, if you have no freaking clue what you're talking about, don't post.

On topic - I think onplayerspawn is only called after people request class.

This is unfortunate for my jail command too. D:
i dont have nothing onplayerspawn i have it empty i do it like i show it
Yes, but you obviously don't have a CLUE what he wants to do, so gtfo.
BRO I HATE U SO MUCH
Reply
#10

Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by ►►►Peter Corneile◄◄◄
Well , you only want that if the player is id 1 , then it Teleports to the place ?
No, I'm pretty sure he wants to make it if SECRET is set to 1, then it will set his position back to the secret coords.
if secret == 1, then it will set his position back to the Secret coords.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)