CAN SOMEONE PLEASE HELP ME??? -
[A]ndrei - 17.07.2012
Hey guys i know you think i whould know howto do this but i dont...
anyways
How to make to so when a player does the cmd
/minigun
he looses his weapons THEN gets a minigun
Re: CAN SOMEONE PLEASE HELP ME??? -
[KHK]Khalid - 17.07.2012
Use
ResetPlayerWeapons then
GivePlayerWeapon
Re: CAN SOMEONE PLEASE HELP ME??? -
[A]ndrei - 17.07.2012
my pawno stop working when i use that but here what im trying to do...
i wanna make it so when this guy does this command he resets the weapons and gets a minigun...
pawn Code:
CMD:minigun(playerid,params[])
{
new Float:randspawn[][4] =
{
{3102.6060,-5245.3096,24.2328,278.1055},
{3134.2615,-5143.8027,20.0940,130.2415},
{3192.4470,-5148.2842,19.9078,214.8389},
{3216.8313,-5197.8647,19.9078,274.2043},
{3202.8687,-5272.9155,19.9078,266.4265},
{3201.5786,-5205.6396,21.0562,52.1316},
{3169.5071,-5215.6929,12.7678,90.6765},
{3121.5500,-5199.1455,13.7700,238.8612},
{3179.5999,-5147.6631,23.1750,96.6024},
{3166.7527,-5267.6665,19.9078,1.0359}
};
new rand = random(sizeof(randspawn));
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
if(PlayerinMMDM[playerid] == 1) return SendClientMessage(playerid,red,"You are already in Minigun Madness DM. Type /exitmm to leave Minigun Madness");
PlayerinMMDM[playerid] = 1;
SetPlayerPos(playerid,randspawn[rand][0],randspawn[rand][1],randspawn[rand][2]);
SetPlayerFacingAngle(playerid,randspawn[rand][3]);
SetPlayerSkin(playerid,287);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid,38,9999999999);
format(str,sizeof(str),"%s has teleported to Minigun Madness [/MM]",name);
SendClientMessageToAll(green,str);
SendClientMessage(playerid,yellow,"Teleported to Minigun Madness");
return 1;
}
Re: CAN SOMEONE PLEASE HELP ME??? -
[KHK]Khalid - 17.07.2012
Add ResetPlayerWeapons(playerid); right before GivePlayerWeapon(playerid,38,9999999999);
Re: CAN SOMEONE PLEASE HELP ME??? -
John_Cooper - 17.07.2012
pawn Code:
CMD:minigun(playerid,params[])
{
new Float:randspawn[][4] =
{
{3102.6060,-5245.3096,24.2328,278.1055},
{3134.2615,-5143.8027,20.0940,130.2415},
{3192.4470,-5148.2842,19.9078,214.8389},
{3216.8313,-5197.8647,19.9078,274.2043},
{3202.8687,-5272.9155,19.9078,266.4265},
{3201.5786,-5205.6396,21.0562,52.1316},
{3169.5071,-5215.6929,12.7678,90.6765},
{3121.5500,-5199.1455,13.7700,238.8612},
{3179.5999,-5147.6631,23.1750,96.6024},
{3166.7527,-5267.6665,19.9078,1.0359}
};
new rand = random(sizeof(randspawn));
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
if(PlayerinMMDM[playerid] == 1) return SendClientMessage(playerid,red,"You are already in Minigun Madness DM. Type /exitmm to leave Minigun Madness");
PlayerinMMDM[playerid] = 1;
SetPlayerPos(playerid,randspawn[rand][0],randspawn[rand][1],randspawn[rand][2]);
SetPlayerFacingAngle(playerid,randspawn[rand][3]);
SetPlayerSkin(playerid,287);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,38,9999999999);
format(str,sizeof(str),"%s has teleported to Minigun Madness [/MM]",name);
SendClientMessageToAll(green,str);
SendClientMessage(playerid,yellow,"Teleported to Minigun Madness");
return 1;
}
Re: CAN SOMEONE PLEASE HELP ME??? -
[A]ndrei - 17.07.2012
thanks plus rep for both of you...