[HELP] Help me with skin
#1

Hey can help me with cmd FS for roleplay /skin
Skin change that commands please in binco
Who can help me
i find it in 1 days
Reply
#2

Please Help me
Reply
#3

Dont bump your topic that much.

Use search! I found something what you asked in 10 seconds!
http://forum.sa-mp.com/index.php?topic=131338.0
Reply
#4


Sorry
i have seacrh
but not find sorry about that
Reply
#5

Try this, its not FS just add it to your Gamemode:
pawn Код:
//--------------------------------------[Skin]-------------------------------------
if(strcmp(cmd, "/skin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /skin [playerid] [skin id]");
return 1;
}
new para1;
new level;
para1 = strval(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); return 1; }
if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1) // or change it to whatever admin level u want.
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pModel] = level;
format(string, sizeof(string), "Your skin has been changed by Admin %s", sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), "You have given %s skin to %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_WHITE, string);
SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
}
}
}
 else
 {
   SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");
  }
 }
return 1;
 }
Reply
#6

that for admin i need for player.
please help.
Reply
#7

Код:
if(strcmp(cmd, "/skin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /skin [playerid] [skin id]");
return 1;
}
new para1;
new level;
para1 = strval(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 299 || level < 1) { SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!"); return 1; }
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pModel] = level;
format(string, sizeof(string), "Your skin has been changed by Admin %s", sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), "You have given %s skin to %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_WHITE, string);
SetPlayerSkin(para1, PlayerInfo[para1][pModel]);
}
}
 else
 {
   SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");
  }
 }
return 1;
 }
Reply
#8

ok lest me try
Reply
#9

why i got this
Quote:

C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(110) : warning 201: redefinition of constant/macro (symbol "MAX_PING")
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(113) : warning 201: redefinition of constant/macro (symbol "GREEN")
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(114) : warning 201: redefinition of constant/macro (symbol "RED")
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(4072) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(5551) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(6749) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(7663) : warning 217: loose indentation
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(7785) : warning 217: loose indentation
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(9322) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18091) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18127) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18357) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18407) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(1840 : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18550) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18551) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18613) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18657) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(1865 : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(18697) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(1869 : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(20452) : warning 219: local variable "para1" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(20952) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(20961) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(20970) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(20979) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(2098 : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(20997) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(21006) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(21015) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(21024) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(21033) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(2365 : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(25727) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(2577 : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(26172) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(26465) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(26720) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(26983) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(27262) : warning 219: local variable "level" shadows a variable at a preceding level
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30594) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30714) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30716) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30719) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30722) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30726) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30729) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30730) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30732) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30744) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30749) : error 010: invalid function or declaration
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30755) : warning 203: symbol is never used: "level"
C:\Documents and Settings\zairol\My Documents\Downloads\LacityRoleplay.pwn(30755) : warning 203: symbol is never used: "para1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


10 Errors.

Reply
#10

any Help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)