if(strcmp(cmd, "/clothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] >= 1)
{
if(IsAtClothShop(playerid))
{
// What must I set here?
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Clothing Shop !");
return 1;
}
}
else
{
if(PlayerInfo[playerid][pLeader] != 0)
{
SendClientMessage(playerid, COLOR_GRAD2, " You can't change your clothes while you are a leader !");
return 1;
}
if(IsAtClothShop(playerid))
{
// What must I set here?
}
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new command[32], params[128], string[128], tmp[128], idx;
sscanf(cmdtext,"ss",command,params);
if(strcmp(cmd, "/clothes", true) == 0)
{
if(PlayerInfo[playerid][pMember] >= 1)
{
if(IsAtClothShop(playerid))
{
SetPlayerSkin(playerid, strval(params);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Clothing Shop !");
return 1;
}
}
else
{
if(PlayerInfo[playerid][pLeader] != 0)
{
SendClientMessage(playerid, COLOR_GRAD2, " You can't change your clothes while you are a leader !");
return 1;
}
if(IsAtClothShop(playerid))
{
SetPlayerSkin(playerid, strval(params);
}
}
}
return 1;
}
|
Originally Posted by [SU
BP13 ]
What? You can't change your characters clothes in game. Do you mean skin change? |