Need help with "worldTime"
#1

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{

  if(pickupid == mover && worldTime == 12) return SetPlayerPos(playerid,1453.9908447266,3375.7922363281,3.3724265098572);
	else if(worldTime == 24)return SetPlayerPos(playerid,1426.2017822266,3337.44140625,4.3413867950439);
  	SendClientMessage( playerid, COLOR_RED, "You escaped the prison,now your in tube,try to find your way out." );
  	SetPlayerHealth(playerid,50.0);
  	SetPlayerWantedLevel(playerid,22);
  	SendClientMessage( playerid, COLOR_RED, "You are now wanted,cops will start searching you soon." );
  return 1;
}
I want to make it work like when player pickups the pickup and time is 12:00 he gets teleported to the prison back but if time is 24:00 he escapes.

Now when time is 12:00,24:00 or something else he gets back to prison. If you know how,please help.
Reply


Messages In This Thread
Need help with "worldTime" - by HAYTXA - 19.06.2010, 16:21
Re: Need help with "worldTime" - by Antonio [G-RP] - 19.06.2010, 16:42
Re: Need help with "worldTime" - by DJDhan - 19.06.2010, 16:42
Re: Need help with "worldTime" - by HAYTXA - 19.06.2010, 16:48
Re: Need help with "worldTime" - by DJDhan - 19.06.2010, 16:51
Re: Need help with "worldTime" - by Antonio [G-RP] - 19.06.2010, 16:52
Re: Need help with "worldTime" - by HAYTXA - 19.06.2010, 16:54
Re: Need help with "worldTime" - by DJDhan - 19.06.2010, 16:57
Re: Need help with "worldTime" - by HAYTXA - 19.06.2010, 16:57
Re: Need help with "worldTime" - by DowNlOaD_ - 19.06.2010, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)