2 RandomSpawns not working
#7

all i did is this

Код:
new Float:DESpawns[8][4] = {
    {1356.9586,2779.5247,187.3727,90.8971},
    {1356.4540,2783.1697,187.3752,89.6437},
    {1356.5916,2786.7891,187.2808,89.6437},
    {1356.3624,2790.1460,187.1783,359.6437},
    {1347.2617,2789.8162,187.1691,89.6437},
    {1346.7258,2783.3672,187.4717,177.3778},
    {1346.2091,2780.1177,187.3761,181.3787},
    {1346.5825,2785.9814,187.3735,284.5387}
};
then

Код:
if(!strcmp(cmdtext, "/deagledm", true))
    {
	GivePlayerWeapon(playerid, 24, 50000000);
        new pName[24];
        new str[128];
        GetPlayerName(playerid, pName, 24);
        format(str, 128, "%s has teleported to /deagledm", pName);
        SendClientMessageToAll(0xFF9900AA, str);
        new RandomSpawn = random(sizeof(DESpawns));
        SetPlayerPos(playerid, DESpawns[RandomSpawn][0], DESpawns[RandomSpawn][1], DESpawns[RandomSpawn][2], DESpawns[RandomSpawn][3]);
        SetPlayerFacingAngle(playerid, DESpawns[RandomSpawn][3]);
        ResetPlayerWeaponsEx(playerid, 24);
and it is working with no errors and i tried in game and also working! the random spawn is working
Reply


Messages In This Thread
2 RandomSpawns not working - by SilverKiller - 17.11.2012, 12:31
Re: 2 RandomSpawns not working - by Freak@ - 17.11.2012, 12:40
Re: 2 RandomSpawns not working - by SilverKiller - 17.11.2012, 12:43
Re: 2 RandomSpawns not working - by Freak@ - 17.11.2012, 12:51
Re: 2 RandomSpawns not working - by SilverKiller - 17.11.2012, 13:46
Re: 2 RandomSpawns not working - by zDivine - 17.11.2012, 14:12
Re: 2 RandomSpawns not working - by SilverKiller - 17.11.2012, 14:48
Re: 2 RandomSpawns not working - by zDivine - 17.11.2012, 14:51
Re: 2 RandomSpawns not working - by SilverKiller - 17.11.2012, 14:59
Re: 2 RandomSpawns not working - by zDivine - 17.11.2012, 15:03

Forum Jump:


Users browsing this thread: 2 Guest(s)