Jump to content
  • 0

/nos


AirBites

Question

4 answers to this question

Recommended Posts

Varianta pentru toti playerii :

	if(strcmp(cmd, "/nos", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(IsPlayerInAnyVehicle(playerid))
			{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
			    SendClientMessage(playerid, COLOR_GREY, "[text");
			}
		}
		return 1;
	}
Varianta pentru admin :
	if(strcmp(cmd, "/nos", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] < [admin level , de la ce level sa foloseasca])
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "[text]");
			    return 1;
			}
			if(IsPlayerInAnyVehicle(playerid))
			{
			    AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
			    SendClientMessage(playerid, COLOR_GREY, "[text]");
			}
		}
		return 1;
	}

Link to comment
Share on other sites

dak vrei sa-ti faci o comanda sa ai nitro cand scrii /nos apoi intra la functia OnePlayerCommmandText

si incepi asa.......>

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/kungfu style", true) == 0)
{
    SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
    SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to Kungfu!");
    return 1;
}

Link to comment
Share on other sites

dak vrei sa-ti faci o comanda sa ai nitro cand scrii /nos apoi intra la functia OnePlayerCommmandText

si incepi asa.......>

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/kungfu style", true) == 0)
{
    SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
    SendClientMessage(playerid, 0xFFFFFFAA, "You have changed your fighting style to Kungfu!");
    return 1;
}

ce treaba are o animatie cu nitro? :o

Proiecte:

Hospital Interior-0%(neinceput)

Limo Interior-0%(inceput)

Bank Interior-0%(neinceput)

Bus Interior-0%(inceput)

Plane Interior-0%(neinceput)

Train Interior-0%(neinceput)

Boat Interior-95%(terminat,mici retusuri)

Mini-Scripturi care au fost publicate:

GPS System: http://forum.sa-mp.ro/filter-scripts-and-gamemodes/%28fs%29-gps-system/

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.