SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

Thread Tools Display Modes
Old 30/10/2009, 05:48 AM   #1
Big Clucker
Quest123's Avatar
Join Date: Sep 2009
Posts: 59
Reputation: 0
Default Give weapons when you tele?

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];
    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);
    return 1;
  return 0;

Quest123 is offline  
Old 30/10/2009, 10:43 AM   #2
Big Clucker
Dak_Cobain's Avatar
Join Date: Feb 2009
Location: Liverpool, NY, US
Posts: 134
Reputation: 27
Default Re: Give weapons when you tele?

And if you ONLY want that weapon you add, use ResetPlayerWeapons(playerid); before you give them the new weapon.

Dak_Cobain is offline  

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MOVED: problem: give player weapons via if() dugi Server Support 0 01/05/2010 10:29 AM
problem: give player weapons via if() master2die Help Archive 5 01/05/2010 07:18 AM
Taking Away Weapons On Tele Jonny_lockhart Help Archive 1 06/04/2010 12:48 PM
How to give a killer his victim's weapons? pmk1 Help Archive 16 20/03/2010 05:37 PM
Command To Give Weapons Dmac_91 Help Archive 4 27/05/2009 08:19 AM

All times are GMT. The time now is 02:48 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.