more guns at start ?
#1

hi,
can we get more guns in the begin ??
its crash if i do more ??
: warning 202: number of arguments does not match definition
or i need add something to other place in script ?
Reply
#2

@ onplayerspawn

pawn Код:
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
And so on.
Reply
#3

Quote:
Originally Posted by (FF)TeddyBear
@ onplayerspawn

pawn Код:
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
GivePlayerWeapon(playerid, gunid, ammo);
And so on.
u can do it too on only 1 char or something ?
Reply
#4

No, everytime a player spawns it will give them a weapon, (meaning all players that spawn)
Reply
#5

for that would you put the gun id or gun model id ?
Reply
#6

https://sampwiki.blast.hk/wiki/Weapons

And it's the gun ID you need to put.
Reply
#7

pawn Код:
GivePlayerWeapon(playerid, 26, 500);
^^ That there will give a player a sawnoff with 500 ammo.
Reply
#8

Quote:
Originally Posted by (FF)TeddyBear
No, everytime a player spawns it will give them a weapon, (meaning all players that spawn)
and where i need to put that i cant get it lolz ?
i got it think i :P and add player classes with gangs ?
Reply
#9

and i got this problem Lol ?
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : error 001: expected token: ";", but found "else"
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : warning 217: loose indentation
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : warning 215: expression has no effect
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : error 001: expected token: ";", but found "if"
C:\Documents and Settings\DENNIS\Bureaublad\gta server\gamemodes\TW2.pwn(821) : fatal error 107: too many error messages on one line


i got but i dont know how to add ?

if(gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid,COLOR_GREEN); SetPlayerInterior(playerid,3); }
else if(gTeam[playerid] == TEAM_BALLAS) SetPlayerColor(playerid,COLOR_PURPLE);
else if(gTeam[playerid] == TEAM_AZTEC) SetPlayerColor(playerid,COLOR_LIGHTBLUE);
else if(gTeam[playerid] == TEAM_NANG) SetPlayerColor(playerid,COLOR_DARKRED);
else if(gTeam[playerid] == TEAM_VAGOS) SetPlayerColor(playerid,COLOR_YELLOW);
else if(gTeam[playerid] == TEAM_COPS) SetPlayerColor(playerid,COLOR_BLUE);
else if(gTeam[playerid] == TEAM_MAFIA) SetPlayerColor(playerid,COLOR_BLACK);
else if(gTeam[playerid] == TEAM_BIKER) SetPlayerColor(playerid,COLOR_ORANGE);
else if(gTeam[playerid] == TEAM_TRIAD) SetPlayerColor(playerid,COLOR_WHITE);
else if(gTeam[playerid] == TEAM_ADMIN) { SetPlayerColor(playerid,COLOR_GOLD); GivePlayerWeapon(playerid,34,200); GivePlayerWeapon(playerid,16,50); }
else if(gTeam[playerid] == TEAM_ARMY) { SetPlayerColor(playerid,COLOR_DARKBROWN); SetPlayerFacingAngle(playerid,90); GivePlayerWeapon(playerid,16,7); }
else if(gTeam[playerid] == TEAM_LOWRIDER) SetPlayerColor(playerid,red);
else if(gTeam[playerid] == TEAM_SKATER) SetPlayerColor(playerid,Skater_grey);
else if(gTeam[playerid] == TEAM_UNDERTAKER) SetPlayerColor(playerid,COLOR_PINK);
else if(gTeam[playerid] == TEAM_WORKER) SetPlayerColor(playerid,Worker_green);

return 1;
}

how can i then add i got errors if i do that or something ?
Reply
#10

ask in GF thread.
Reply
#11

Quote:
Originally Posted by AlExAlExAlEx
ask in GF thread.
This is not related to the gf, lol @ u.
Reply
#12

Quote:
Originally Posted by (FF)TeddyBear
Quote:
Originally Posted by AlExAlExAlEx
ask in GF thread.
This is not related to the gf, lol @ u.
my bad
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)