Jump to content
  • 0

Nevoie mare de ajutor


Leo

Question

Sal am o problema la respawn adika un player daca vrea sa ii dau respawn de acasa sau depinde de unde este locul lui de respawn nu merge folosesc /respawn si /spawn niciuna nu merge mam uitat in gm comanda apare dar nu functioneaza am schibat cate ceve ce nu rea in regula dar tot asa nush chiar nam idei va rog plz help!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Inlocuieste comanda /respawn cu ce iti dau eu

//-----------------------------------respawn---------------------------------------------
    if(strcmp(cmd, "/respawn", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Scrie: /respawn [nume]");
				return 1;
			}
			new playa;
			playa = ReturnUser(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pModerator] >= 1)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
			        	GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						SpawnPlayer(playa);
						SetPlayerArmour(playerid,0.0);
						format(string, sizeof(string), "%s l-a respawnat pe %s.",sendername,  giveplayer);
						printf("%s",string);
						format(string, sizeof(string), "%s a fost respawnat de %s.",giveplayer ,sendername);
						ABroadCast(COLOR_LIGHTRED,string,1);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Nu ai voie sa folosesti aceasta comanda!!!!");
			}
		}
		return 1;
	}

Link to comment
Share on other sites

Inlocuieste comanda /respawn cu ce iti dau eu

//-----------------------------------respawn---------------------------------------------
    if(strcmp(cmd, "/respawn", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Scrie: /respawn [nume]");
				return 1;
			}
			new playa;
			playa = ReturnUser(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pModerator] >= 1)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
			        	GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						SpawnPlayer(playa);
						SetPlayerArmour(playerid,0.0);
						format(string, sizeof(string), "%s l-a respawnat pe %s.",sendername,  giveplayer);
						printf("%s",string);
						format(string, sizeof(string), "%s a fost respawnat de %s.",giveplayer ,sendername);
						ABroadCast(COLOR_LIGHTRED,string,1);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "Nu ai voie sa folosesti aceasta comanda!!!!");
			}
		}
		return 1;
	}

Daca mai ajuti alta data pe cineva care posteaza Probleme Godfather inafara topicului pentru aceste probleme iei warn.

PROBLEME GODFATHER!

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.