GivePlayerWeapon on teleporting
#1

How to give a player an additional weapon when teleporting somewhere (always keeping the default weapons) ?
Reply
#2

just with giveplayerweapon under your setplayerposition...
it will keep the weapon you had i think

try it
Reply
#3

Код:
if(strcmp("/command", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 0.0,0.0,0.0); // please change
GivePlayerWeapon(playerid, 38,100); 38 = minigun   100 = ammo
SendClientMessage(playerid, COLOR_RED, "Portet to \"/command\"");
return 1;
}
Reply
#4

thanks...and how to give a player only a weapon? (and obviously get all the default weapons when teleporting back)
Reply
#5

under the same command use

SetSpawnInfo(playerid, 0, 281, -1592.9590,716.3616,-5.2422, 90.0, 41, 500, 3, 1, 22, 20);
SpawnPlayer(playerid);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)