23.09.2013, 00:47
Criei este comando para os admins estacionarem carros da concessionaria, so que quando da /aestacionar parece: Server: Unknown Command, Como faзo funcionar? Obrigado.
pawn Код:
if (strcmp("/aestacionar", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Vocк nгo estб em um veiculo.");
new vehicle = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z, Float:c;
GetVehiclePos(vehicle, Float:x, Float:y, Float:z);
GetVehicleZAngle(vehicle, Float:c);
CarInfo[vehicle][cLocationx] = x;
CarInfo[vehicle][cLocationy] = y;
CarInfo[vehicle][cLocationz] = z;
CarInfo[vehicle][cAngle] = c;
SaveCars();
return 1;
}