Spawn Weapon Help
#1

Hello Guys I want do this Fonction

When Player Death Save He Weapon
and When Player Spawn give him He Weapon

Can one help me please?

great
Reply
#2

You can do this using https://sampwiki.blast.hk/wiki/GetPlayerWeaponData... Now you basicly you just save all the information under OnPlayerDisconnect
Reply
#3

Just Tell me How
Reply
#4

Quote:
Originally Posted by AzTeCaS
Посмотреть сообщение
Just Tell me How
|Please Don't Write Like This.|

Quote:
Originally Posted by DarrenThayer
Посмотреть сообщение
You can do this using https://sampwiki.blast.hk/wiki/GetPlayerWeaponData... Now you basicly you just save all the information under OnPlayerDisconnect
^He just told you. Use dini/y_ini/MySQL/SII/What ever way you want to save it in players file.
Reply
#5

Top of the script:

pawn Код:
new pSpawnWeapon[MAX_PLAYERS][13],
    pSpawnAmmo[MAX_PLAYERS][13];
Under OnPlayerDeath:
pawn Код:
for(new i; i < 13; i++)
{
    GetPlayerWeaponData(playerid, i, pSpawnWeapon[playerid][i], pSpawnAmmo[playerid][i]);
}
Under OnPlayerSpawn:
pawn Код:
for(new i; i < 13; i++)
{
   GivePlayerWeapon(playerid, pSpawnWeapon[playerid][i], pSpawnWeapon[playerid][i]);
}
That should work.
Reply
#6

thnx for this Help n1 kasy
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)