Jump to content
  • 0

/rac sa ma ajutati


GiGiMuScHi

Question

Salutare.

As dori daca se poate sa ma ajutati sa imi modificati voi sau sa imi spuneti ce ar trebui sa fac ca masinile personale sa nu se mia respawneze la comanda /rac.Doar cele de la factiuni de la rent si cele dupa strada.

Uitati comanda /rac:

if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) // by Ellis

{

    if(IsPlayerConnected(playerid))

    {

        if(PlayerInfo[playerid][pAdmin] < 1339)

{

    SendClientMessage(playerid, COLOR_2RED, "  Nu esti AUTORIZAT !");

    return 1;

}

SetTimer("ractime", 10000, 0);

GetPlayerName(playerid, sendername, sizeof(sendername));

format(string, sizeof(string), "Toate Masinile Nefolosite Vor fi Respawnate de catre %s in 10 secunde.", sendername);

BroadCast(COLOR_RED,string);

}

return 1;

}

Ma puteti ajuta?

Respecta Si Vei Fi Respectat !!!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Incearca asa

	if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 1339
			{
			new bool:unwanted[CAR_AMOUNT];
			for(new player=0; player<MAX_PLAYERS; player++)
     		{
            	if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
     		}
			for(new car = 1; car <= 500; car++) //aici pui tu de la ce id pana la ce id vrei sa se respaneze masinile
			{
				if(!unwanted[car]) SetVehicleToRespawn(car);
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "All unused cars have been respawned by administrator %s.", sendername);
			SCMTA(COLOR_WHITE,string);
			}
		}
		return 1;
	}

gXvsYS
Link to comment
Share on other sites

Incearca asa

	if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] >= 1339
			{
			new bool:unwanted[CAR_AMOUNT];
			for(new player=0; player<MAX_PLAYERS; player++)
     		{
            	if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
     		}
			for(new car = 1; car <= 500; car++) //aici pui tu de la ce id pana la ce id vrei sa se respaneze masinile
			{
				if(!unwanted[car]) SetVehicleToRespawn(car);
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "All unused cars have been respawned by administrator %s.", sendername);
			SCMTA(COLOR_WHITE,string);
			}
		}
		return 1;
	}

Daca mai ii ajuti pe cei cu probleme godfather care nu posteaza in acel topic, ai warn.

Probleme Godfather.

Link to comment
Share on other sites

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.