Jump to content

Question

Posted

Am facut o comanda de admin

	if(strcmp(cmdtext, "/Hydra", true)==0 || strcmp(cmdtext, "/h", true)==0)
	{
	if(PlayerInfo[playerid][Level] >= 1) {
	if(IsPlayerInAnyVehicle(playerid)) {
	SendClientMessage(playerid,red,"Error: You already have a vehicle");
	} else  {
	GetPlayerPos(playerid, x, y, z);
	hydra=CreateVehicle(520, x+3, y, z, 900.00, -1, -1, 120);
	PutPlayerInVehicle(playerid, hydra,0);
	LinkVehicleToInterior( hydra, GetPlayerInterior(playerid));
	}
	}else SendClientMessage(playerid,red,"ERROR: You need to be level 1 to use this command");
	return 1;
	}

Pana aici e bine..playeri nu il pot spawna dar daca il gasesc il pot conduce...ce fac ca sa repar asta?

Massari e curva mea

2 answers to this question

Recommended Posts

Posted

Pune

[pawn]if (PlayerInfo[playerid][pAdmin] < 1)

    {

    SendClientMessage(playerid, COLOR_GREY, "Nu poti conduce aceasta masina");

    return 1;

    }[/pawn]

gXvsYS
Posted

Adica asa

	if(strcmp(cmdtext, "/Hydra", true)==0 || strcmp(cmdtext, "/h", true)==0)
	{
	if(PlayerInfo[playerid][Level] >= 1) 
{
SendClientMessage(playerid,COLOR_RED,"Nu Poti conduce aceasta masina");
}
	if(IsPlayerInAnyVehicle(playerid)) {
	SendClientMessage(playerid,red,"Error: You already have a vehicle");
	} else  {
	GetPlayerPos(playerid, x, y, z);
	hydra=CreateVehicle(520, x+3, y, z, 900.00, -1, -1, 120);
	PutPlayerInVehicle(playerid, hydra,0);
	LinkVehicleToInterior( hydra, GetPlayerInterior(playerid));
	}
	}else SendClientMessage(playerid,red,"ERROR: You need to be level 1 to use this command");
	return 1;
	}

?

Massari e curva mea

Guest
This topic is now closed to further replies.
×
×
  • 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.