How to do...
#3

Код:
if(strcmp(cmd, "/velocity", true)==0)
    {
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        {
            SendClientMessage(playerid, 0xFF0000AA, "You can only use this command while driving a vehicle!");
            return 1;
        }
        new tmp1[256], tmp2[256];
        tmp1= strtok(cmdtext, idx);
        tmp2= strtok(cmdtext, idx);
        if(!strlen(tmp1) || !strlen(tmp2))
        {
            SendClientMessage(playerid, LIGHTBLUE2, "Use: /velocity [x/y/z] [value]");
            SendClientMessage(playerid, orange, "Function: Velocity weeha pr0n0");
            return 1;
        }
       
        if(!strcmp(tmp1, "x", true)) <-- Line 6557
        {

            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                GetVehicleVelocity(GetPlayerVehicleID(playerid), xpos, ypos, zpos);
                SetVehicleVelocity(GetPlayerVehicleID(playerid), xpos, ypos, zvelovalue);
            }
            else
            {
                InCar[playerid] = false;
                GetPlayerVelocity(playerid, xpos, ypos, zpos);
                SetPlayerVelocity(playerid, xpos, ypos, zvelovalue);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
How to do... - by rbN. - 05.08.2010, 14:28
Re: How to do... - by Zafire1410 - 05.08.2010, 14:30
Re: How to do... - by Carlton - 05.08.2010, 14:32
Re: How to do... - by rbN. - 05.08.2010, 14:32
Re: How to do... - by Carlton - 05.08.2010, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)