24.08.2013, 09:24
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!
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!