timer
#15

Use the 'Modify' button...

pawn Код:
#include <a_samp>

new Pickup;

new PlayerMoney;

new PlayerMoneyPickup;

public OnGameModeInit()
{
Pickup = CreatePickup(1212, 2, 2019.7742,1344.4839,10.8203);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PlayerMoney = GetPlayerMoney(playerid);
PlayerMoneyPickup = CreatePickup(1212, 2, Float:x, Float:y, Float:z);
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Pickup)
{
GivePlayerMoney(playerid, 100000);
SendClientMessage(playerid, 0x33AA33AA, "You Better Run They Gonna Whant That Money");
SetTimerEx("Timer", 30000, 0, "i", playerid);
DestroyPickup(Pickup);
return 1;
}
if(pickupid == PlayerMoneyPickup)
{
GivePlayerMoney(playerid, PlayerMoney);
DestroyPickup(PlayerMoneyPickup);
return 1;
}
return 1;
}

forward Timer(playerid);
public Timer(playerid)
{
GivePlayerMoney(playerid, 100000);
SetTimerEx("Timer", 30000, 0, "i", playerid);
return 1;
}
@Karlip: If you got any suggestions, then spit out...
Reply


Messages In This Thread
timer - by sggassasin - 18.07.2009, 09:06
Re: timer - by MenaceX^ - 18.07.2009, 09:26
Re: timer - by sggassasin - 18.07.2009, 09:28
Re: timer - by refshal - 18.07.2009, 09:29
Re: timer - by sggassasin - 18.07.2009, 09:44
Re: timer - by Karlip - 18.07.2009, 09:46
Re: timer - by sggassasin - 18.07.2009, 09:48
Re: timer - by Karlip - 18.07.2009, 09:50
Re: timer - by sggassasin - 18.07.2009, 09:53
Re: timer - by refshal - 18.07.2009, 09:53
Re: timer - by Karlip - 18.07.2009, 09:55
Re: timer - by refshal - 18.07.2009, 09:57
Re: timer - by sggassasin - 18.07.2009, 10:06
Re: timer - by sggassasin - 18.07.2009, 10:12
Re: timer - by refshal - 18.07.2009, 10:16
Re: timer - by sggassasin - 18.07.2009, 10:39
Re: timer - by refshal - 18.07.2009, 10:42
Re: timer - by sggassasin - 18.07.2009, 10:50
Re: timer - by sggassasin - 18.07.2009, 10:56
Re: timer - by MenaceX^ - 18.07.2009, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)