Drive By CMD
#2

Like this?

Compiles fine.


pawn Код:
CMD:driveby(playerid, params[])
{
    new HisState;
    HisState = GetPlayerState(playerid);
    if(IsPlayerInRangeOfPoint(playerid, 4, 1214.5676,-905.8721,42.9207))
    {
        if(HisState == PLAYER_STATE_DRIVER)
        {
            SetTimerEx("Heal_Player",15000,false,"i",playerid);
            TogglePlayerControllable(playerid,0);
            SendClientMessage(playerid,-1,"Please wait...");
        }
        else
        {
            SendClientMessage(playerid, -1, "You are not driving a car.");
            return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not at the drive-by order spot.");
        return 1;
    }
    return 1;
}
forward public Heal_Player(playerid);
public Heal_Player(playerid)
{
    SetPlayerHealth(playerid,100.0);
        TogglePlayerControllable(playerid,1);
    return 1;
}
Reply


Messages In This Thread
Drive By CMD - by Gogorakis - 12.11.2013, 21:13
Re: Drive By CMD - by DobbysGamertag - 12.11.2013, 21:18
Re : Drive By CMD - by samp_boy - 12.11.2013, 21:19
Re: Drive By CMD - by Loot - 12.11.2013, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)