18.04.2014, 01:50
title , and
How do I do that once a player buys second player the prop dropped the first player timer of the property.
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;}