#1

i have mselection skin system as we know we can select any skin from mselection but how can i do that system when we select civilian skin then we get our team to civilian and if we select cop skin then our team will be cops how can i make it can anyone explain me this ?
Reply
#2

it will be something like:-
PHP код:
new skinlist mS_INVALID_LISTID//at the top

skinlist LoadModelSelectionMenu("skins.txt"); //Under OnGameModeInIt

CMD:changeskin(playeridparams[])
{
        
ShowModelSelectionMenu(playeridskinlist"Select Skin");
        return 
1;
}
public 
OnPlayerModelSelection(playeridresponselistidmodelid)
{
    if(
listid == skinlist)
    {
        if(
response)
        {
             for(new 
0MAX_PLAYERSi++)
               {
                     
SetPlayerSkin(imodelid);
               }
        }
        return 
1;
    }
    return 
1;

Reply
#3

if cop skin selected then how can i set the player team to cop ?
Reply
#4

PHP код:
switch(modelid)
{
    case 
/*COP SKINS*/SetPlayerTeam(playerid/*COP*/);

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)