Problem with spectating on killer
#1

Hello i have this code in my pawno

if(!IsPlayerInAnyVehicle(killerid)) {
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid); }
if(IsPlayerInAnyVehicle(killerid)) {
TogglePlayerSpectating(playerid, 1);
PlayerSpectateVehicle(playerid, killerid);
SetTimerEx("spawntime",10000,false,"i",playerid);

public spawntime(playerid)
{
TogglePlayerSpectating(playerid,0);
SetPlayerVirtualWorld(playerid,0);
SetTimerEx("OnPlayerSpawn",1000,false,"i",playerid );
}

i use this code so the player wil spectate the killer for 10 secs the probvlem is sometimes it works and you spectate and than youll spawn but somethimes you spectate your killer but you wont ever spawn

what could be the problem

Reply


Messages In This Thread
Problem with spectating on killer - by Pawno_Master - 19.10.2009, 16:36
Re: Problem with spectating on killer - by roschti - 19.10.2009, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)