set time after each hour.
#4

pawn Код:
CMD:getcar(playerid, params[])
{
    new vehicle, Float:x, Float:y, Float:z;
    if(!CheckAdmin(playerid, ADMIN_LEVEL_1)) return NotAuthMSG(playerid);
    if(sscanf(params,"d",vehicle)) return SyntaxMSG(playerid, "/getcar [vehicleid]");
    if(vehicle == INVALID_VEHICLE_ID) return SCM(playerid, -1, "No such vehicle.");
    GetPlayerPos(playerid, x, y, z);
    SetVehiclePos(vehicle, x, y+4, z);
    return 1;
}

CMD:gotocar(playerid, params[])
{
    new vehicle, Float:x, Float:y, Float:z;
    if(!CheckAdmin(playerid, ADMIN_LEVEL_1)) return NotAuthMSG(playerid);
    if(sscanf(params,"d",vehicle)) return SyntaxMSG(playerid, "/gotocar [vehicleid]");
    if(vehicle == INVALID_VEHICLE_ID) return SCM(playerid, -1, "No such vehicle.");
    GetVehiclePos(vehicle, x, y, z);
    PutPlayer(playerid, x+1, y+1, z);
    return 1;
}
P.S: For the timer thing, there are some FS's that set player realistic time, take a look at them.
Reply


Messages In This Thread
set time after each hour. - by PaulDinam - 17.02.2013, 14:15
Re: set time after each hour. - by DaRk_RaiN - 17.02.2013, 14:23
Re: set time after each hour. - by PaulDinam - 17.02.2013, 14:32
Re: set time after each hour. - by DaRk_RaiN - 17.02.2013, 15:02
Re: set time after each hour. - by PaulDinam - 17.02.2013, 16:43
Re: set time after each hour. - by bensmart469 - 17.02.2013, 16:51
Re: set time after each hour. - by PaulDinam - 17.02.2013, 17:04
Re: set time after each hour. - by MP2 - 17.02.2013, 17:06

Forum Jump:


Users browsing this thread: 2 Guest(s)