Skin command
#1

This is a skin changing command works as /skin <id>

PHP код:
CMD:skin(playerid,params[])
{
    new 
skinid;
    if(
PlayerInfo[playerid][Freeze] == 1) return GameTextForPlayer(playerid"~g~you cant use commands while being ~n~~g~frozen",4500,3);
    if(
PlayerInfo[playerid][Jail] == 1) return GameTextForPlayer(playerid,"~g~Player is not in freeroam",2500,3);
    if(
indm[playerid] >= 1) return GameTextForPlayer(playerid,"~g~You are not in freeroam",2500,3);
    if(
PlayerInfo[playerid][Jail] == 1) return GameTextForPlayer(playerid,"~g~Player is not in freeroam",2500,3);
    if(
sscanf(params"d"skinid)) GameTextForPlayer(playerid,"~g~/skin <skinid>",4500,3);
    else if(
skinid || skinid 311) return 0;
    else
    {
        
SetPlayerSkin(playeridskinid);
    }
    return 
1;

But i want to make it also like if a player does not type the skin id so it automatically ForceClassSelection
Reply


Messages In This Thread
Skin command - by iMouiz - 14.07.2015, 13:52
Re: Skin command - by X337 - 14.07.2015, 14:00
Re: Skin command - by iTakelot - 14.07.2015, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)