public OnPlayerRequestSpawn(playerid)
{
new skin;
skin = GetPlayerSkin(playerid);
if(skin == TheReservedSkinID && IsPlayerInYourClan == 0) // Change the "TheReservedSkinID" to the reserved skin ID, and change "IsPlayerInYourClan" to your player clan data
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}
public OnPlayerRequestSpawn(playerid) { new skin; skin = GetPlayerSkin(playerid); if(skin == 10 && [TcB]EmuK == 0) // Change the "TheReservedSkinID" to the reserved skin ID, and change "IsPlayerInYourClan" to your player clan data { GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3); return 1; } return 1; }
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\tokyofinalv3.pwn(1560) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\tokyofinalv3.pwn(1560) : error 017: undefined symbol "TcB" C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\tokyofinalv3.pwn(1560) : error 029: invalid expression, assumed zero C:\Program Files (x86)\Rockstar Games\GTA San Andreas\gamemodes\tokyofinalv3.pwn(1560) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
public OnPlayerRequestSpawn(playerid)
{
new skin;
new name[MAX_PLAYER_NAME];
skin = GetPlayerSkin(playerid);
GetPlayerName(playerid, name, sizeof(name));
if(skin == 10 && strcmp(name, "[TcB]EmuK", false))
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}
Originally Posted by еddy
pawn Код:
|
Originally Posted by D3nnis
Quote:
otherwise the player will be spawn anyway. |
#include <a_samp>
public OnPlayerRequestClass(playerid, classid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(classid == 10 && strcmp(name, "[TcB]EmuK", false))
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
new skin;
new name[MAX_PLAYER_NAME];
skin = GetPlayerSkin(playerid);
GetPlayerName(playerid, name, sizeof(name));
if(skin == 10 && strcmp(name, "[TcB]EmuK", false))
{
GameTextForPlayer(playerid, "~w~SKIN RESERVED", 3000, 3);
return 1;
}
return 1;
}