SA-MP Forums Archive
how to add items like mobile etc... to carlitos roleplay? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to add items like mobile etc... to carlitos roleplay? (/showthread.php?tid=139558)



how to add items like mobile etc... to carlitos roleplay? - hardstop - 05.04.2010

how to add items like mobile etc... to carlitos roleplay?
like you can buy them at shop, and it saves to user


Re: how to add items like mobile etc... to carlitos roleplay? - hardstop - 05.04.2010

nobody replys there it so sad


Re: how to add items like mobile etc... to carlitos roleplay? - Jay. - 06.04.2010

Код:
Use MTA and click objects then go and click pickups. and find the mobile phone and put it in the shop u want it to be in then


Convert it ==> [codehttp://gtamap.delux-host.com/]
After that put it under OnGameInt in ur script and complie.


then go to wiki and find ==>
Код:
https://sampwiki.blast.hk/wiki/SpecialActions
Ok then


make a command under on PlayerCommandText like /buyphone.

Then. Put SetPlayerSpeicalAtion(playerid,SPECIAL_ACTION_DRIN K_BEER);



Here use this ==>
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/handsup", cmdtext, true, 10) == 0)
	{
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);

		return 1;
	}



Ok now i sergest Complie and go ingame go to the shop where u placed the phone and type /buyphone or what ever item u placed and named hope u understand what i said and its only a idea..!