Jump to content

Question

Posted

aM LUAT gm reven's rp de pe samp.com si am inceput sal traduc,sa modific comenzi ,sa adaug comenzi dar cnd lam compilat si am intrat pe sv si miai dat respawn scrie ca mam respawnat dar raman in acelasi loc

Cnd es afara de pe sv sii intru iar ma la in locul ala unde eram cnd am esit ce pot face sa skot script asta  :huh:

[sTR]FiSoFt am intrat in calnu lu ruben

2 answers to this question

Recommended Posts

Posted

Am patit si eu asa , e bug la comanda /respawn din cate imi amintesc.

Schimb-o cu cea de mai jos , si refa-ti contul ca sa fii sigur ca nu ramane buguit

    if(strcmp(cmd, "/respawn", true) == 0) 
	{
	    if(IsPlayerConnected(playerid))
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
			    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /respawn [playerid/PartOfName]");
				return 1;
			}
			new playa;
  			playa = ReturnUser(tmp);
  			if (PlayerInfo[playerid][pAdmin] >= 1)
			{
				if(IsPlayerConnected(playa))
    			{
				    if(playa != INVALID_PLAYER_ID)
    				{
		  				//if(SpawnChange[playerid])
						{
							GetPlayerName(playa, giveplayer, sizeof(giveplayer));
							SpawnPlayer(playa);
							GetPlayerName(playerid, sendername, sizeof(sendername));
							format(string, sizeof(string), "* You have respawned player %s", giveplayer);
							SendClientMessage(playerid, COLOR_LIGHTRED, string);
     						format(string, sizeof(string), "* You have been respawned by Admin %s", sendername);
							SendClientMessage(playa, COLOR_LIGHTRED, string);
							format(string, 256, "AdmWarning: %s was respawned by %s", giveplayer, sendername);
							ABroadCast(COLOR_LIGHTRED,string,1);
							return 1;
				        }
					}
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_GRAD1, " Nu ai voie sa folosesti aceasta comanda!");
			}
		}
		return 1;
	}

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.