25.07.2010, 05:50
Код:
public OnPlayerRequestSpawn(playerid)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(GetPlayerSkin(playerid) == 294)
{
if(!strcmp(PlayerName,"willsuckformoney",true))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back willsuckformoney");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_CRIMSON, "This is willsuckformoney SKIN ONLY!");
return 0;
}
}
if(GetPlayerSkin(playerid) == 204)
{
if(!strcmp(PlayerName,"Babul",true))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back Babul");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_CRIMSON, "This is Babul SKIN ONLY!");
return 0;
}
}
if(GetPlayerSkin(playerid) == 123)
{
if(!strcmp(PlayerName,"grandTheftOtto",true))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome back grandTheftOtto");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_CRIMSON, "This is grandTheftOtto SKIN ONLY!");
return 0;
}
}
return 1;
}
if they can't use the skin, They will not spawn and will go back to Class selection, if they can they will Spawn
return 1 = spawn
return 0 = no spawn
Hope that helped

