how i make dynamic prop system
#1

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(playeridcmdtext[]){
    if (
strcmp("/buyproprace"cmdtexttrue10) == 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;} 
Reply
#2

up..
Reply
#3

up........
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)