Command help.( Yet again )
#7

CMD:vl(playerid)
to
CMD:vl(playerid, params[])

EDIT:
pawn Код:
CMD:vl(playerid, params[])
{
    if(PlayerInfo[playerid][Level] >=5 || IsPlayerAdmin(playerid))
    {
        if(Admin[playerid] == 0) return SP COLOR_RED, "You're not on duty");
        if(!IsPlayerInAnyVehicle(playerid)) return SP COLOR_RED, "You need to be in a vehicle");
        new Float:VLX, Float:VLZ, FloatVLY;
        new tmp1[256], tmp2[256], tmp3[256];
        new string[128], Index; tmp0 = strtok(params, Index); tmp2 = strtok(params, Index); tmp3 = strtok(params, Index);
        if(isnull(tmp1) || isnull(tmp2) || !strilen(tmp3)) return SP -1, "Usage: /vl [X], [Y], [Z]");
        x = strval(tmp1);           y = strval(tmp2);            z = strval(tmp3);
        CMDMessageToAdmins(playerid, "VL");
        SetVehicleVelocity(GetPlayerVehicleID(playerid)), x, +y, +z);
        SP blue, "Happy flying");
    }
    else return SendClientMessage(playerid,red, "[ERROR]: You are not a high enough level to use this command");
    return 1;
}
Reply


Messages In This Thread
Command help.( Yet again ) - by Strier - 31.01.2013, 21:57
Re: Command help.( Yet again ) - by Roach_ - 31.01.2013, 21:59
Re: Command help.( Yet again ) - by Sime30 - 31.01.2013, 22:00
Respuesta: Command help.( Yet again ) - by Strier - 31.01.2013, 22:01
Re: Command help.( Yet again ) - by Roach_ - 31.01.2013, 22:02
Respuesta: Command help.( Yet again ) - by Strier - 31.01.2013, 22:06
Re: Command help.( Yet again ) - by Roach_ - 31.01.2013, 22:07
Respuesta: Command help.( Yet again ) - by Strier - 31.01.2013, 22:20
Re: Command help.( Yet again ) - by Roach_ - 31.01.2013, 22:22
Respuesta: Command help.( Yet again ) - by Strier - 31.01.2013, 22:28

Forum Jump:


Users browsing this thread: 1 Guest(s)