How to SYNC a player?
#1

Simple question, how can I synchronize a player, like if a teammate knifes a teammate, then how can I sync the player back?
Reply
#2

Depends on what GM you've done, with teams or w/e .
SetPlayerTeam(playerid, 0);
Reply
#3

Quote:
Originally Posted by fatlirmorina
Посмотреть сообщение
Depends on what GM you've done, with teams or w/e .
SetPlayerTeam(playerid, 0);
I am only talking about syncing a player, Refreshing a player!!
Reply
#4

Your best chance would be to stream them out, then stream them in again. Try changing their virtual worlds and then changing it back.

pawn Код:
new oldworld = GetPlayerVirtualWorld(playerid);
SetPlayerVirtualWorld(playerid, oldworld + 1);
SetPlayerVirtualWorld(playerid, oldworld);
I'm not sure if a timer is required here, but chances are that you may need to set a timer for 1-2 seconds before setting the player's world to its original.
Reply
#5

Quote:
Originally Posted by Threshold
Посмотреть сообщение
Your best chance would be to stream them out, then stream them in again. Try changing their virtual worlds and then changing it back.

pawn Код:
new oldworld = GetPlayerVirtualWorld(playerid);
SetPlayerVirtualWorld(playerid, oldworld + 1);
SetPlayerVirtualWorld(playerid, oldworld);
I'm not sure if a timer is required here, but chances are that you may need to set a timer for 1-2 seconds before setting the player's world to its original.
Will that work when a player is knifed and lying down on ground(samp bug) and can't stand. If i use your code will it make the player to normal state!
Reply
#6

I'm pretty sure, yes. Although you might need to add a timer, I'm not sure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)