17.02.2013, 15:02
pawn Код:
CMD:getcar(playerid, params[])
{
new vehicle, Float:x, Float:y, Float:z;
if(!CheckAdmin(playerid, ADMIN_LEVEL_1)) return NotAuthMSG(playerid);
if(sscanf(params,"d",vehicle)) return SyntaxMSG(playerid, "/getcar [vehicleid]");
if(vehicle == INVALID_VEHICLE_ID) return SCM(playerid, -1, "No such vehicle.");
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(vehicle, x, y+4, z);
return 1;
}
CMD:gotocar(playerid, params[])
{
new vehicle, Float:x, Float:y, Float:z;
if(!CheckAdmin(playerid, ADMIN_LEVEL_1)) return NotAuthMSG(playerid);
if(sscanf(params,"d",vehicle)) return SyntaxMSG(playerid, "/gotocar [vehicleid]");
if(vehicle == INVALID_VEHICLE_ID) return SCM(playerid, -1, "No such vehicle.");
GetVehiclePos(vehicle, x, y, z);
PutPlayer(playerid, x+1, y+1, z);
return 1;
}