PDA

View Full Version : Lock Skin


tiwk
19/10/2009, 05:25 PM
How can I block skins?

For only the members of a clan can choose and see.


EX
The people enter the server with tag Ex.[LO]TIWK can choose and see.

The peplo enter the server out tag no chouse and no see.

HElp :D

Tanks...and sorry my inglish

MaykoX
19/10/2009, 05:53 PM
Yeah i wana do it to i know its somthing with teams..

tiwk
19/10/2009, 07:01 PM
Yeah i wana do it to i know its somthing with teams..


:'( Please people help my

Virtual1ty
19/10/2009, 07:13 PM
i had this before on my server.. you will have to make a #define for example #define TEAM_TRIAD 294 //this number is the skin ID
under OnPlayerSpawn:
if((GetPlayerSkin(playerid) == TEAM_TRIAD))
{
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,"Death_Angel",true) == 0) // change this to the name you want
{
}
else
{
GameTextForPlayer(playerid,"~r~This Skin Is For~n~TRIAD'S~n~Only !",700,1); // change this too...
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
}
return 1;
}

tiwk
19/10/2009, 08:57 PM
i had this before on my server.. you will have to make a #define for example #define TEAM_TRIAD 294 //this number is the skin ID
under OnPlayerSpawn:
if((GetPlayerSkin(playerid) == TEAM_TRIAD))
{
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,"Death_Angel",true) == 0) // change this to the name you want
{
}
else
{
GameTextForPlayer(playerid,"~r~This Skin Is For~n~TRIAD'S~n~Only !",700,1); // change this too...
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
}
return 1;
}


Ty one problem

1091) : error 017: undefined symbol "name"
1091) : error 017: undefined symbol "name"
1091) : error 029: invalid expression, assumed zero
1091) : fatal error 107: too many error messages on one line

kman
19/10/2009, 09:18 PM
i wanna know same thing but only that you need a high score to choose that skin?

Virtual1ty
20/10/2009, 11:57 AM
i had this before on my server.. you will have to make a #define for example #define TEAM_TRIAD 294 //this number is the skin ID
under OnPlayerSpawn:
if((GetPlayerSkin(playerid) == TEAM_TRIAD))
{
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,"Death_Angel",true) == 0) // change this to the name you want
{
}
else
{
GameTextForPlayer(playerid,"~r~This Skin Is For~n~TRIAD'S~n~Only !",700,1); // change this too...
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0.0);
}
return 1;
}


Ty one problem

1091) : error 017: undefined symbol "name"
1091) : error 017: undefined symbol "name"
1091) : error 029: invalid expression, assumed zero
1091) : fatal error 107: too many error messages on one line

very, very strange .. try adding new name[MAX_PLAYER_NAME];
somewhere under OnPlayerSpawn

Lynet
21/11/2012, 05:29 PM
public OnPlayerRequestSpawn(playerid)
{
new skin = GetPlayerSkin(playerid);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if((skin == 240) && (strcmp(name, "NAME FOR DUDE", true) == 1))
{
SendClientMessage(playerid,COLOR_RED,"This Skin Is Locked For Fool........");
SetPlayerHealth(playerid,0);
return 0;
}

Try this anyways