case 0,2,1,4,5(Replace these with your skin's):
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You are not authorized to use this command!");
Or If You want Other Skin's To Not Use This Then
if(gTeam[playerid] == (Other Teams)) return SendClientMessage(playerid,-1,"Choose Other Skin, These Are For Official Members Only!
SetPlayerColor(playerid,0x8EEE7DFF);
SetPlayerVirtualWorld(playerid,1);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2239.9063,-1641.9432,15.5267);
SetPlayerFacingAngle(playerid, 151.7758);
SetPlayerCameraPos(playerid, 2237.3972,-1646.6178,16.3376);
SetPlayerCameraLookAt(playerid, 2239.9063,-1641.9432,15.5267);
GameTextForPlayer(playerid, "Admins!", 500, 3);
ApplyAnimation(playerid,"SMOKING", "M_smklean_loop", 4.0, 1, 0, 0, 0, 0);
gTeam[playerid] = TEAM_ADMINS; ( Used team_admins as an example, replace it with your administration team)
}
cmd(buyskin, playerid, params[])
{
new skinid;
if(skinid == IDHERE || skinid == IDHERE || skinid == IDHERE) return SendClientMessage(playerid, -1,"The skin you have selected is for LSPD only"); //Add the skins to this line
SetPlayerSkin(playerid, skinid);
}
Well, for example if you have a command like /buyskin then this should be your code.
pawn Код:
|
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] != '[LSPD]')
}
}
case 58..64: { GangInfo[playerid][LSPD] = 1; GangInfo[playerid][Cadet] = 0; GangInfo[playerid][CRASH] = 0; if(IsPlayerNPC(playerid)) return 1; SetPlayerPos(playerid, 1539.4164,-1675.2948,13.5469); SetPlayerFacingAngle(playerid,100.0); SetPlayerCameraPos(playerid, 1535.5811,-1675.2346,13.3828); SetPlayerCameraLookAt(playerid, 1539.4164,-1675.2948,13.5469); ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1, 1); GameTextForPlayer(playerid, "~b~Los Santos Police Department", 2000, 6); SetPlayerColor(playerid,0x0000BBAA); }
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '[LSPD]')
{
GangInfo[playerid][LSPD] = 1;
GangInfo[playerid][Cadet] = 0;
GangInfo[playerid][CRASH] = 0;
if(IsPlayerNPC(playerid)) return 1;
SetPlayerPos(playerid, 1539.4164,-1675.2948,13.5469);
SetPlayerFacingAngle(playerid,100.0);
SetPlayerCameraPos(playerid, 1535.5811,-1675.2346,13.3828);
SetPlayerCameraLookAt(playerid, 1539.4164,-1675.2948,13.5469);
ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1, 1);
GameTextForPlayer(playerid, "~b~Los Santos Police Department", 2000, 6);
SetPlayerColor(playerid,0x0000BBAA);
}
}
}