Weapon at spawn
#1

What i need to change here so this players always spawns with a Tec9(id 32) and infinite ammo for it ?

Код:
Level=10
AdminLevel=1340
DonateRank=2
UpgradePoints=0
ConnectedTime=10
Registered=1
Sex=1
Age=21
Origin=1
CK=0
Muted=0
Respect=12
Money=45102146
Bank=524538920
Crimes=1
Kills=9
Deaths=0
Arrested=0
WantedDeaths=0
Phonebook=0
LottoNr=0
Fishes=0
BiggestFish=0
Job=14
Paycheck=7190
HeadValue=0
Jailed=0
JailTime=0
Materials=0
Drugs=0
Leader=1
Member=0
FMember=255
Rank=6
Char=288
ContractTime=25
DetSkill=4
SexSkill=0
BoxSkill=0
LawSkill=0
MechSkill=3
JackSkill=0
CarSkill=0
NewsSkill=0
DrugsSkill=0
CookSkill=0
FishSkill=0
pSHealth=0.0
pHealth=100.0
Int=0
Local=255
Team=2
Model=7
PhoneNr=969405
Car=225
Reply
#2

pawn Код:
SetSpawnInfo( playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 26, 32, 28, 150, 0, 0 ); // 32 is that gun, i quess 150 is the ammo, so u can change the values.
SpawnPlayer(playerid);
Reply
#3

Where should i put this in the gamemode and how can i use this only for a specific player ?
Reply
#4

pawn Код:
public OnPlayerSpawn(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(!strcmp(name, "Brutal[ABK]", false)) //replace my name with yours
    {
        GivePlayerWeapon(playerid, 32, 99999);
    }
    return 1;
}
Reply
#5

pawn Код:
public OnPlayerSpawn(playerid)
{
  GivePlayerWeapon(playerid,32,10000000);
  return 1;
}
Reply
#6

Quote:
Originally Posted by googamalugafoo
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
  GivePlayerWeapon(playerid,32,10000000);
  return 1;
}
He wants it for a specific player, not for everyone lol
Reply
#7

lol i dont understand his English much.

Код:
1. This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)