This script isnt working :S
#1

i used this to lock my skin i made a "new myskin[1];
and putted "myskin[0]=" infront of the Addplayerclass and i used this to stop people from using it and this code isnt working i did it kinda same with my car.


Код:
for(new i=0; i<sizeof(myskin); i++)
		{
   		if(GetPlayerSkin(playerid)==myskin[i])
   			{
				new name[MAX_PLAYER_NAME];
				GetPlayerName(playerid, name, sizeof(name));
        		if(!strcmp(name,"[KTB]Lil_Fam[PNR]",true) == 0)
				{
				   SetPlayerHealth(playerid,0);
				   SendClientMessage(playerid,COLOR_RED,"You are not [KTB]Lil_Fam[PNR]");
				}
   			}
		}
Reply
#2

If this is just for one player, you dont need any array and a loop
pawn Код:
new myskin = 0;//Assuming myskin is of CJ
//Wherever you want to put it
if(GetPlayerSkin(playerid) == myskin)
{
    new name[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                if(!strcmp(name,"[KTB]Lil_Fam[PNR]",true) == 0)
                {
                   SetPlayerHealth(playerid,0);
                   SendClientMessage(playerid,COLOR_RED,"You are not [KTB]Lil_Fam[PNR]");
                }
}
Reply
#3

ok now i did it like that but if i pick the skin i locked i still can spawn even if im using another name
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)