SA-MP Forums Archive
Help how to convert this? 0.3x Skin Selection - 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 how to convert this? 0.3x Skin Selection (/showthread.php?tid=464474)



Help how to convert this? 0.3x Skin Selection - DamienWalter - 17.09.2013

How to make it ZCMD??

i want to put it to my gamemode

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new cmd[256+1];
	new	idx;

	if(!IsPlayerAdmin(playerid)) return 0;
	
	cmd = strtok(cmdtext, idx);

	if(strcmp("/skinchange", cmd, true) == 0)
	{
 		// If there was a previously created selection menu, destroy it
		DestroySelectionMenu(playerid);
		
	    SetPVarInt(playerid, "skinc_active", 1);
	    //SetPVarInt(playerid, "skinc_page", 0); // will reset the page back to the first
	    
	    CreateSelectionMenu(playerid);
	    SelectTextDraw(playerid, 0xACCBF1FF);
	    return 1;
	}
	
	return 0;
}
--
i want to use this but its not working cuz im using ZCMD
https://sampforum.blast.hk/showthread.php?tid=407045


Re: Help how to convert this? 0.3x Skin Selection - alinategh - 17.09.2013

pawn Код:
CMD:skinchange(playerid, params[])
{
   //Your Code
   return 1;
}



Re: Help how to convert this? 0.3x Skin Selection - Konstantinos - 17.09.2013

pawn Код:
CMD:skinchange(playerid, params[])
{
    // If there was a previously created selection menu, destroy it
    DestroySelectionMenu(playerid);
       
    SetPVarInt(playerid, "skinc_active", 1);
    //SetPVarInt(playerid, "skinc_page", 0); // will reset the page back to the first
       
    CreateSelectionMenu(playerid);
    SelectTextDraw(playerid, 0xACCBF1FF);
    return 1;
}