SA-MP Forums Archive
/clothes CMD 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: /clothes CMD HELP! (/showthread.php?tid=369492)



/clothes CMD HELP! - NinjaChicken - 17.08.2012

ok well basically when a player spawns they all have the same skin so i want it when a player is in a certain radius (EG when the spawn for the first time) a dialog pops up allowing them to enter a new SKIN ID to use

the cmd must use [pModel] because thats what my script uses please help thx


Re: /clothes CMD HELP! - RanSEE - 17.08.2012

Fixed


Re: /clothes CMD HELP! - NinjaChicken - 17.08.2012

NOOOOOOOOOOOOOOOOO i mean like they input the skin id they want -.- or can someone make it so if they enter the point exactly there skin will change to something random


Re: /clothes CMD HELP! - Mike_Peterson - 17.08.2012

It'd been 2 months since my last post, I see they modified the forums abit.. discussion & help seperated (FINALLY), yet you're still posting this in the wrong section.. You are requesting someone to script something for you, afaik. Here this is for you: https://sampforum.blast.hk/showthread.php?tid=187229


Re: /clothes CMD HELP! - AdamDuerden - 17.08.2012

I had this same problem, if you want to make an NPC Spawn with a certain Skin ID, do this, it worked for me.

This is an example of one of my NPC's under 'public OnPlayerSpawn(playerid)'

Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "Cashier_One", true))
    {
	  SetPlayerSkin(playerid,76);
      return 1;
    }
I hope this helped!


Re: /clothes CMD HELP! - AdamDuerden - 17.08.2012

oh, sorry, i misunderstood, i was thinking of NPC's


Re: /clothes CMD HELP! - NinjaChicken - 17.08.2012

haha sall good


Re: /clothes CMD HELP! - NinjaChicken - 17.08.2012

anyone?


Re: /clothes CMD HELP! - CROSS_Hunter - 17.08.2012

just add classes?


Re: /clothes CMD HELP! - NinjaChicken - 17.08.2012

i dont want classes