Posts: 458
Threads: 36
Joined: Apr 2008
05-13-2009, 04:23 PM
(This post was last modified: 05-13-2009, 04:24 PM by SAFC)
Yeah thats why you create a short timer when they spawn back on the ship, although it isnt really needed since it would work fine by doing the below.
If they're killed on the ship, give them shipdeath[playerid] = 1;
Then under OnPlayerSpawn
if(shipdeath[playerid] == 1)
{
loadspawnweaps(playerid);
SetPlayerPos(playerid, x, y, z); = put in the co-ords for the ship.
SendClientMessage(playerid, COLOR_YELLOW, "You've been spawned back on the ship because some pratt ship killed you.");
shipdeath[playerid] = 0;
}
that should work perfectly fine... since the weaps are given before they've been put on the ship, then the ship gets the weapon data and saves it before taking away the players weapons.
Anyway, it seemed to be fine in the 2.8 version, spawn weaps were reloaded without fail after beign ship killed.
Still waiting for an answer about why people are able to kill on the ship without being jailed. Surely you would test scripts before releasing them.
And why is heli killing allowed?