SA-MP Forums Archive
Help Please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Please (/showthread.php?tid=69945)



Help Please - [SsC11]MAVERIK - 21.03.2009

Код:
forward DoesPlayerHasTag(playerid,tag[]);
OnplayerSpawn:

Код:
	 case TEAM_NT: {
		if((!DoesPlayerHasTag(playerid,"nighT"))) //Replace This by Your Clan Tag
	  {
    SendClientMessage(playerid,COLOR_ORANGE,"NighT Rulez!!");
	  GivePlayerWeapon(playerid,31,800);
	  GivePlayerWeapon(playerid,24,800);
	  GivePlayerWeapon(playerid,27,800);
	 		SetPlayerColor(playerid,COLOR_BRIGHTRED);
	    SetPlayerPos(playerid,2558.4133,1562.1017,10.8203);
		}
		else
		{
    ForceClassSelection(playerid);

				SetPlayerHealth(playerid,0);
	      SendClientMessage(playerid,COLOR_ORANGE,"NighT Skin Only, Please Change!");
  	}
	    return 1;
  	 }
Error:
error004: function "DoesPlayerHasTag" in not implemented

How i can fix it?


Re: Help Please - ICECOLDKILLAK8 - 21.03.2009

You need the DoesPlayerHaveTag function somewhere in your script


Re: Help Please - [SsC11]MAVERIK - 21.03.2009

not working.

i have remove the forward, the compilare didn't get error but the script don't works


Re: Help Please - [SsC11]MAVERIK - 25.03.2009

I Have Fix Using This:

Код:
  new player[24];
	GetPlayerName(playerid, player, 24);
Код:
	 case TEAM_NT: {
    if(strfind(player,"nighT",true) == 0)
	  {
	    SendClientMessage(playerid,COLOR_ORANGE,"Skin check ok");
	  GivePlayerWeapon(playerid,31,800);
	  GivePlayerWeapon(playerid,24,800);
	  GivePlayerWeapon(playerid,27,800);
	 		SetPlayerColor(playerid,COLOR_BRIGHTRED);
	    SetPlayerPos(playerid,2558.4133,1562.1017,10.8203);
		}
		else
		{
		  ForceClassSelection(playerid);
      SetPlayerHealth(playerid,0);
		  ResetPlayerWeapons(playerid);
	    SendClientMessage(playerid,COLOR_ORANGE,"You cannot use this skin! Type /kill now!");
		}
	  return 1;
	}