Give weapons when you tele? - 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: Give weapons when you tele? (
/showthread.php?tid=105585)
Give weapons when you tele? -
Quest123 - 30.10.2009
Hey im new to scripting so i need to know how i could put guns into this tele so when i teleport to the place i can have get the guns that i put in the script
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/duel") == 0)
{
new string[52];
new name[24];
GetPlayerName(playerid,name,24);
SetPlayerPos(playerid, 1394.4448, 2159.5742, 9.7578,89.3516);
format(string,sizeof(string),"%s has just typed /duel, type it to to duel him!",name);
SendClientMessageToAll(0xFFFFFFFF,string);
return 1;
}
return 0;
}
Re: Give weapons when you tele? -
Dak_Cobain - 30.10.2009
https://sampwiki.blast.hk/wiki/GivePlayerWeapon
And if you ONLY want that weapon you add, use ResetPlayerWeapons(playerid); before you give them the new weapon.
~Dak