OnPlayerSpawn does not work wtf&? :D -
user226 - 22.09.2009
thanks
Re: OnPlayerSpawn does not work wtf&? :D -
legendario - 22.09.2009
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
Re: OnPlayerSpawn does not work wtf&? :D -
_Vortex - 22.09.2009
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:
Re: OnPlayerSpawn does not work wtf&? :D -
Peter_Corneile - 22.09.2009
Well , you only want that if the player is id 1 , then it Teleports to the place ?
Re: OnPlayerSpawn does not work wtf&? :D -
_Vortex - 22.09.2009
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.
Re: OnPlayerSpawn does not work wtf&? :D -
legendario - 22.09.2009
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
Re: OnPlayerSpawn does not work wtf&? :D -
_Vortex - 22.09.2009
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.
Re: OnPlayerSpawn does not work wtf&? :D -
Peter_Corneile - 22.09.2009
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 ?
Re: OnPlayerSpawn does not work wtf&? :D -
legendario - 22.09.2009
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
Re: OnPlayerSpawn does not work wtf&? :D -
user226 - 22.09.2009
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.