A little scripting help
#1

Well i added the timer as you might see at bottom but when im ingame it doesent show after droping the car. So basicly im spamming /dropcar at the checkpoint and i am getting payed. And how to make the car to dissapier after entering the checkpoint ?
PHP код:
CMD:dropcar(playeridparams[])
{
    if(
GetPlayerVehicleID(playerid) != 0)
    {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid2505.8506, -2629.014413.29445);
        
SendClientMessage(playeridCOLOR_LIGHTBLUE"Drop the car at the crane!");
        
dropping[playerid] = true;
    }
    return 
1;

PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
        if(
dropping[playerid] == true)
        {
            
DisablePlayerCheckpoint(playerid);
            new 
string[128], price;
            
price random (100);
            
format(stringsizeof(string), "*You've earned {FF6347}$%d{33CCFF} from dropping a car!"price);
            
SendClientMessage(playeridCOLOR_LIGHTBLUEstring);
            
GivePlayerMoney(playeridprice);
            
dropping[playerid] = false;
            
SetTimerEx("DropTimer"20000false"i"playerid);
        } 
Reply


Messages In This Thread
A little scripting help - by weedxd - 17.09.2014, 18:15
Re: A little scripting help - by Threshold - 18.09.2014, 03:00
Re: A little scripting help - by weedxd - 18.09.2014, 11:38

Forum Jump:


Users browsing this thread: 1 Guest(s)