Object player problem, help!
#1

where is the bug in this script? i need create player object (visible to all server, not CreatePlayerObject), but when a player (random) disconnected of the server, the object bug to all players... the script example is this, please help me where i wrong

Create a Variable
new ObjectPlayer[MAX_PLAYERS];

OnPlayerSpawn
// I create a Object
ObjectPlayer[playerid] = CreateObject( ...

OnPlayerDisconnect
DestroyObject(ObjectPlayer[playerid]);

// I try to use also IsValidObject, but nothing the Object ID bug for all Players!
// Thanks in advance!
Reply
#2

look this better

https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)