How to set spawn locations on command.
#10

I fixed it by myself bro!!.. I did this

Код HTML:
if (strcmp("/DD2", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_BLUE, "You just got Teleported to Derby Map!");
        new Random = random(sizeof(RandomSpawn));
        SetPlayerPos(playerid, RandomSpawn[Random][0], RandomSpawn[Random][1], RandomSpawn[Random][2]);
        new Car = CreateVehicle(411,RandomSpawn[Random][0], RandomSpawn[Random][1], RandomSpawn[Random] [2],0,0,0,0);
        PutPlayerInVehicle(playerid,Car,0);
        SetPlayerInterior(playerid, 0);
    }
But thanks for your help too.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)