13.07.2012, 20:53
How can I disable all commands except.
This /w - weapons menu /v- vehicle menu /stats /pm and so on..
I have here an example where i want to enable those commands.
This /w - weapons menu /v- vehicle menu /stats /pm and so on..
I have here an example where i want to enable those commands.
Code:
CMD:drag(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid, -2911.2407,-194.6217,2.7821); CreateDynamicObject(4247, -3037.851074, -103.473968, 1.177714, 0.000000, 0.000000, 0.000000,1,-1,-1,300.0);//floor SetPlayerFacingAngle(playerid, 0.0); SetPlayerInterior(playerid, 0); new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "{6666FF}(/drag) {00CCFF}%s {6666FF}has Teleported to Drag Area",pName); SendClientMessageToAll(playerid, string); SetPlayerVirtualWorld(playerid, 1); } else{ new veh = GetPlayerVehicleID(playerid); LinkVehicleToInterior(veh, 0); SetVehiclePos(veh, -2911.2407,-194.6217,2.7821); SetVehicleZAngle(veh, 0.0); SetPlayerPos(playerid, -2911.2407,-194.6217,2.7821); CreateDynamicObject(4247, -3037.851074, -103.473968, 1.177714, 0.000000, 0.000000, 0.000000,1,-1,-1,300.0);//floor new string[128], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, MAX_PLAYER_NAME); format(string, sizeof(string), "{6666FF}(/drag) {00CCFF}%s {6666FF}has Teleported to Drag Area",pName); SendClientMessageToAll(playerid, string); PutPlayerInVehicle(playerid, veh, 0); SetVehicleVirtualWorld(veh, 1); SetPlayerVirtualWorld(playerid, 1); } return SendClientMessage(playerid, 0xFF0000FF, "You have been teleported to Drag Arena"); }