Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help (
/showthread.php?tid=616036)
Help -
javedali1211 - 30.08.2016
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 ?
Re: Help -
DeeadPool - 30.08.2016
it will be something like:-
PHP код:
new skinlist = mS_INVALID_LISTID; //at the top
skinlist = LoadModelSelectionMenu("skins.txt"); //Under OnGameModeInIt
CMD:changeskin(playerid, params[])
{
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
return 1;
}
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == skinlist)
{
if(response)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetPlayerSkin(i, modelid);
}
}
return 1;
}
return 1;
}
Re: Help -
javedali1211 - 31.08.2016
if cop skin selected then how can i set the player team to cop ?
Re: Help -
Shinja - 31.08.2016
PHP код:
switch(modelid)
{
case /*COP SKINS*/: SetPlayerTeam(playerid, /*COP*/);
}