Help Please
#1

Код:
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?
Reply
#2

You need the DoesPlayerHaveTag function somewhere in your script
Reply
#3

not working.

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

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;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)