Stop Teleport?
#1

Can any body tell me how to make the player dont teleport on OnPlayerRequestClass
ty.
Reply
#2

if you dont want it to teleport, what do you want it to teleport on onplayerrequestclass. And what is it doing now ?
Reply
#3

dude i mean PLAYER CAN TELEPORT ON OnPlayerRequestClass and i want to ask if there any thing to block all the teleports on OnPlayerRequestClass or some thing
Reply
#4

Ye
Create this:

pawn Код:
new Teleport[MAX_PLAYERS];
Then in OnPlayerConnect And OnPlayerRequestClass Put this:

pawn Код:
Teleport[playerid] = 1;
And In OnPlayerSpawn, Put this :

pawn Код:
Teleport[playerid] = 0;
Then in your command put this:

pawn Код:
if(Teleport[playerid] == 1) // Means if he is not spawned
// Your code
Hope i helped.
Reply
#5

Mhm you want to check if the player is spawned, right?

new bool:PlayerSpawned[MAX_PLAYERS];

OnPlayerConnect and OnPlayerDeath
PlayerSpawned[playerid] = false;

OnPlayerSpawn
PlayerSpawned[playerid] = true;

Just use PlayerSpawned[playerid] == true to check if the player is spawned.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)