hi ich wollte euch fragen,
wie man dieses Tank cmd in dcmd format umschreibt:
{
new veh = GetPlayerVehicleID(playerid);
if(strcmp(cmdtext, "/fuel", true) == 0) {
if(GetPlayerState(playerid) == 2) {
if(Gas[veh] >= 100) {
SendClientMessage(playerid,0xFFF000AA,"Vehicle full with petrol.");
return 1;
}
if(GetPlayerMoney(playerid) <= 99) {
SendClientMessage(playerid,0xFFF000AA,"Not enough money.");
return 1;
}
Gas[veh] = MAX_GAS;
}
else {
SendClientMessage(playerid,0xFFF000AA,"Not in a vehicle.");
return 1;
}
return 1;
}
MfG: Apoolecu