18.05.2013, 14:08
pawn Код:
new UbranieG[MAX_PLAYERS][48];
pawn Код:
if(PlayerInfo[playerid][pGang]==1)
{
if(PlayerInfo[playerid][pUbrany]==0) { format(UbranieG[playerid],48,"Disguise (Crips)");
if(PlayerInfo[playerid][pUbrany]==1) { format(UbranieG[playerid],48,"{00CC00}Disguise (Crips)");
}
format(format1[playerid],256,"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",Wallet[playerid],UbranieG[playerid]);
pawn Код:
case DIALOG_P:
{
if(response)
{
if(!strcmp(inputtext, UbranieG[playerid], true) && strlen(inputtext) == strlen(UbranieG[playerid]))
{
if(PlayerInfo[playerid][pUbrany]==0)
{
SetPlayerSkin(playerid,PlayerInfo[playerid][pUbranie]);
PlayerInfo[playerid][pUbrany]=1;
ShowPlayerInventory(playerid);
return 1;
}
else if(PlayerInfo[playerid][pUbrany]==1)
{
SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
PlayerInfo[playerid][pUbrany]=0;
ShowPlayerInventory(playerid);
return 1;
}
}