if (strcmp("/apark", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
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;
}
if(strcmp(cmd, "/apark", true) == 0)
{
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
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;
}
pawn Код:
|
if (strcmp(cmd, "/apark", true) == 0)
{
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= MASTER)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle.");
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;
}
pawn Код:
|
if (strcmp("/apark", cmdtext, true, 10) == 0) { GetPlayerName(playerid, sendername, 256); if (PlayerInfo[playerid][pAdmin] >= MASTER) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle."); 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; }