18.08.2011, 19:34
Can anybody give me a cmd like /godcar (Ladmin) ?
YCMD:godcar(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not authorized to use that command!");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 99999999.9) //random value of assortment
return 1;
}
CMD:godcar(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not an Admin");
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 9999999.0);
}
return 1;
}