05.08.2010, 14:32
Код:
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; }