#10

I did, still the cmds are not working IG, but I think, Why would the cmds work if I never write somewhere in the pawno /repair /heal /armour.
Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}

CMD:heal(playerid, params[])
{
SetPlayerHealth(playerid, 100.00);
return 1;
}
CMD:armour(playerid, params[])
{
SetPlayerArmour(playerid, 100.00);
return 1;
}
CMD:repair(playerid, params[])
{
if (IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "ERROR: You're not in a vehicle.");
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}

EDIT: Yep the cmds works lolz, I forgot to login as a admin. so yep thank you for help. but 1thing, when I am not in a car it doesn't say ERROR:You're not in a car. why?
Reply


Messages In This Thread
cmd - by saffierr - 14.07.2014, 00:20
Re: cmd - by Jack_Leslie - 14.07.2014, 00:22
Re: cmd - by saffierr - 14.07.2014, 00:27
Re: cmd - by FahadKing07 - 14.07.2014, 00:45
Re: cmd - by saffierr - 14.07.2014, 00:47
Re: cmd - by FahadKing07 - 14.07.2014, 00:55
Re: cmd - by saffierr - 14.07.2014, 01:06
Re: cmd - by saffierr - 14.07.2014, 02:03
Re: cmd - by Jack_Leslie - 14.07.2014, 02:56
Re: cmd - by saffierr - 14.07.2014, 04:56

Forum Jump:


Users browsing this thread: 3 Guest(s)