Interior FS into Gamemode
#5

In my gamemode, I use these 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;
}

Reply


Messages In This Thread
Interior FS into Gamemode - by spyro9696 - 04.01.2018, 20:32
Re: Interior FS into Gamemode - by RogueDrifter - 04.01.2018, 20:35
Re: Interior FS into Gamemode - by DaniceMcHarley - 04.01.2018, 20:36
Re: Interior FS into Gamemode - by spyro9696 - 04.01.2018, 20:45
Re: Interior FS into Gamemode - by spyro9696 - 04.01.2018, 20:51
Re: Interior FS into Gamemode - by RogueDrifter - 04.01.2018, 21:05
Re: Interior FS into Gamemode - by spyro9696 - 04.01.2018, 21:11
Re: Interior FS into Gamemode - by spyro9696 - 04.01.2018, 22:07
Re: Interior FS into Gamemode - by spyro9696 - 05.01.2018, 08:47
Re: Interior FS into Gamemode - by RogueDrifter - 05.01.2018, 12:31

Forum Jump:


Users browsing this thread: 2 Guest(s)