How do i make a player get certain weapons when he teles to a place? - 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 do i make a player get certain weapons when he teles to a place? (
/showthread.php?tid=151868)
How do i make a player get certain weapons when he teles to a place? -
rohan234 - 01.06.2010
Hello,
How do i make a player get certain weapons when he teles to a place? Eg, if i did swat teleport i would get a SMG with 1000 ammo ?
thanks
Re: How do i make a player get certain weapons when he teles to a place? -
Naxix - 01.06.2010
under or above "SetPlayerPos(...)" in the tele command just add GivePlayerWeapon(playerid,weaponid,ammo)
Re: How do i make a player get certain weapons when he teles to a place? -
rohan234 - 01.06.2010
Ok but how do i add multiple weapons?
Re: How do i make a player get certain weapons when he teles to a place? -
IanDaCJ - 01.06.2010
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/House", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, X, Y, Z);
GivePlayerWeapon(playerid,[weaponid],[ammo]);
return 1;
}
return 0;
}
Replace X, Y, Z with your saved positions..
something like that

For More weapons keep adding :
Replace [weapon id] [ammo]
pawn Код:
GivePlayerWeapon(playerid,[weaponid],[ammo]);
Re: How do i make a player get certain weapons when he teles to a place? -
rohan234 - 01.06.2010
Thanks alot
Re: How do i make a player get certain weapons when he teles to a place? -
IanDaCJ - 01.06.2010
Quote:
Originally Posted by rohan234
Thanks alot 
|
yw

if u need more help just ask or pm me
Re: How do i make a player get certain weapons when he teles to a place? -
Flashy - 01.06.2010
Afaik you could read it all at SAMP Wiki..
Next time search it and try to understand the Pawn-linguage.