CAN SOMEONE PLEASE HELP ME???
#3

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;
}
Reply


Messages In This Thread
CAN SOMEONE PLEASE HELP ME??? - by [A]ndrei - 17.07.2012, 04:35
Re: CAN SOMEONE PLEASE HELP ME??? - by [KHK]Khalid - 17.07.2012, 04:51
Re: CAN SOMEONE PLEASE HELP ME??? - by [A]ndrei - 17.07.2012, 05:04
Re: CAN SOMEONE PLEASE HELP ME??? - by [KHK]Khalid - 17.07.2012, 05:20
Re: CAN SOMEONE PLEASE HELP ME??? - by John_Cooper - 17.07.2012, 05:26
Re: CAN SOMEONE PLEASE HELP ME??? - by [A]ndrei - 17.07.2012, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)