Jump to content
  • 0

Question

Posted

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 !!!

2 answers to this question

Recommended Posts

Posted

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
Posted

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.

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.