Another FS in my GM if it's possible
#3

I have not changed anything, I put everything in the GM without changing the commands.
In my gm I use this type of commands:

Quote:

COMMAND:hidename(playerid, params[])
{
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(playerid, i, false);
for(new i = GetPlayerPoolSize(); i != -1; --i) ShowPlayerNameTagForPlayer(i, playerid, false);
// Do something
return 1;
}

CMD:fix(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You are not in a vehicle!");
if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, -1, "You are not in the driver seat!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, -1, "Your vehicle has been sucessfully repaired!");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
return 1;
}

COMMAND:armour(playerid, params[])
{
SetPlayerArmour(playerid, 100);
// Do something
return 1;
}

There is a part of the script that must go in public OnPlayerCommandText(playerid, cmdtext[]), maybe that's the problem?
Reply


Messages In This Thread
Another FS in my GM if it's possible - by spyro9696 - 05.01.2018, 18:18
Re: Another FS in my GM if it's possible - by Ritzy2K - 05.01.2018, 19:59
Re: Another FS in my GM if it's possible - by spyro9696 - 05.01.2018, 20:04
Re: Another FS in my GM if it's possible - by Ritzy2K - 05.01.2018, 20:13
Re: Another FS in my GM if it's possible - by spyro9696 - 05.01.2018, 20:15

Forum Jump:


Users browsing this thread: 1 Guest(s)