how i make dynamic prop system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how i make dynamic prop system (
/showthread.php?tid=507537)
how i make dynamic prop system -
Xeinss - 18.04.2014
title , and
How do I do that once a player buys second player the prop dropped the first player timer of the property.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[]){
if (strcmp("/buyproprace", cmdtext, true, 10) == 0)
{
if(HaveProp[playerid] == 1) return SendClientMessage(playerid,0xFF0000AA,"! יש לך כבר נכס");
GivePlayerMoney(playerid,-1500);
SS = SetTimer("RaceProp",20000,0);
HaveProp[playerid] = 1;
return 1;}
return 0;}
forward RaceProp(playerid);
public RaceProp(playerid)
{GivePlayerMoney(playerid,5000);
SendClientMessage(playerid,0xFF0000AA,"! קבלת כסף מהנכס : איזור המרוצים")
;return 1;}
forward BuyRacePropToPlayer(playerid);
public BuyRacePropToPlayer(playerid)
{
KillTimer(SS);
HaveProp[playerid] = 0
;return 1;}
Re: how i make dynamic prop system -
Xeinss - 18.04.2014
up..
Re: how i make dynamic prop system -
Xeinss - 19.04.2014
up........