Problem with spectating on killer
#2

try this:

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

  public spawntime(playerid)
  {
  TogglePlayerSpectating(playerid,0);
  SetPlayerVirtualWorld(playerid,0);
  //SetTimerEx("OnPlayerSpawn",1000,false,"i",playerid); <- "OnPlayerSpawn" is called when you will spawn, not to spawn!
  SpawnPlayer(playerid);
  }
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)