Skin help
#1

DELETED Sorry i Just little mistake
Reply
#2

pawn Код:
CMD:skin(playerid, params[])
{
    new string[128], skinid;
    if(sscanf(params, "d", skinid))
    {
        SendClientMessage(playerid, COLOR_WHITE, "Usage: /skin [skinID]");
    }
    else
    {
        SetPlayerSkin(playerid, skinid);
        format(string, sizeof(string), "You have Try Skin ID : %d", skinid);
        SendClientMessage(playerid, COLOR_WHITE, string);
        SendClientMessage(playerid, COLOR_GREEN, "You Already Try Skin type /buyskin to buy it");
        SetPVarInt(-1,"test",3);
    }
    return 1;
}
Reply
#3

pawn Код:
CMD:skin(playerid, params[])
{
    new string[35], skinid;//No need for big length
    if(sscanf(params, "d", skinid)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /skin [skinID]");
    else
    {
        SetPlayerSkin(playerid, skinid);
        format(string, sizeof(string), "You have Try Skin ID : %d", skinid);
        SendClientMessage(playerid, COLOR_WHITE, string);
        SendClientMessage(playerid, COLOR_GREEN, "You Already Try Skin type /buyskin to buy it");
        SetPVarInt(-1,"test",3);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)