Give weapons when you tele?
#1

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;
}
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)