22.07.2009, 05:30
I use DCMD (but i regret it and thought that i'd give it a try. I made a /tow command (nothing huge just /tow <id>). But it doesnt seem to work?
Thanks: Luciano
Код:
dcmd_tow(playerid, params[]) { if(strlen(params)) { new id = strval(params); if(IsPlayerConnected(id) && playerid != id) { if(IsPlayerInAnyVehicle(id) && GetVehicleModel(GetPlayerVehicleID(playerid) == 525)) { if(IsPlayerAdmin(playerid)) { AttachTrailerToVehicle(GetPlayerVehicleID(id),GetPlayerVehicleID(playerid)); SendClientMessage(playerid, COLOR_GOLD, "You are towing somebody!"); SendClientMessage(id, COLOR_GOLD, "You are being towed!"); }else{ SendClientMessage(playerid, COLOR_GOLD, "You arn't an administrator!"); } } }else{ SendClientMessage(playerid, COLOR_GOLD, "Player is disconnected or is yourself!"); } }else{ SendClientMessage(playerid, COLOR_GOLD, "Usage: /tow [playerid] - Tow a player's car"); } }