30.05.2010, 17:05
would this be it
Код:
dcmd_callcar(playerid, params[]) { new Float:X, Float:Y, Float:Z; if(sscanf(params, "s", vehicleid)) SendClientMessage(playerid, TEXT_COLOR, "USAGE: \"/callcar [carname]\""); else if(GetPlayerState(playerid) == 2) SendClientMessage(playerid, TEXT_COLOR, "You must be on foot to call your car."); else { new string[70]; format(string, sizeof(string), "You have called car id: %s", carname); GetVehiclePos(vehicleid, X, Y, Z); SetVehiclePos(vehicleid, X, Y, Z); SendClientMessage(playerid, 0x00FFFFAA, string); return 1; } return 1; }