Posts: 115
Threads: 60
Joined: Jul 2015
Reputation:
0
when I make /ban or /kick or /ban like those admin commands to player it made for anther player example /makeadmin 2 9999 it made for anther id like /makeadmins 2 99999 I promote id 1 when I kick id 3 it kicks id 5 like this how to slove it
and when I make /veh 522 0 0 told me /veh modelid color 1 color 2 and the car doesn't spawn what I do to fix it
I am using rated gaming roleplay script
Posts: 1,004
Threads: 18
Joined: Oct 2014
Reputation:
0
Well, just posts those commands here. Make sure you use [pawn] or [code] BBCodes to avoid spam.
Posts: 1,004
Threads: 18
Joined: Oct 2014
Reputation:
0
Open your gamemode with Pawno, hit CTRL+F and search for the commands. If you do not use any commands processor, simply type the command that you're looking for (e.g. /ban). If you do use a commands processor, add CMD: prefix to the commands you're arching for and remove slash (e.g. CMD:ban).
Posts: 115
Threads: 60
Joined: Jul 2015
Reputation:
0
veh
CMD:veh(playerid, params[]) {
if (PlayerInfo[playerid][pAdmin] >= 4) {
new
iVehicle,
iColors[2];
if(sscanf(params, "iii", iVehicle, iColors[0], iColors[1])) {
SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /veh [model ID] [color 1] [color 2]");
}
else if(!(400 <= iVehicle <= 611)) {
SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid model specified (model IDs start at 400, and end at 611).");
}
else if(!(0 <= iColors[0] <= 255 && 0 <= iColors[1] <= 255)) {
SendClientMessageEx(playerid, COLOR_GRAD2, "Invalid colour specified (IDs start at 0, and end at 255).");
}
else for(new iIterator; iIterator < sizeof(CreatedCars); iIterator++) if(CreatedCars[iIterator] == INVALID_VEHICLE_ID) {
new
Float: fVehPos[4];
GetPlayerPos(playerid, fVehPos[0], fVehPos[1], fVehPos[2]);
GetPlayerFacingAngle(playerid, fVehPos[3]);
CreatedCars[iIterator] = CreateVehicle(iVehicle, fVehPos[0], fVehPos[1], fVehPos[2], fVehPos[3], iColors[0], iColors[1], -1);
VehicleFuel[CreatedCars[iIterator]] = 100.0;
LinkVehicleToInterior(CreatedCars[iIterator], GetPlayerInterior(playerid));
return SendClientMessageEx(playerid, COLOR_GREY, "Vehicle spawned!");
}
}
else SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
return 1;
}
Posts: 115
Threads: 60
Joined: Jul 2015
Reputation:
0
id
CMD:id(playerid, params[])
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /id [playerid]");
if(IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "(ID: %d) - (Name: %s) - (Level: %d) - (Ping: %d)", giveplayerid, GetPlayerNameEx(giveplayerid), PlayerInfo[giveplayerid][pLevel], GetPlayerPing(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
}
return 1;
}
Posts: 399
Threads: 77
Joined: Jun 2011
Reputation:
0
Use PHP tags, don't just paste it.