putplayerinvehicle onplayerspawn?
#1

yeah..

i got this so far

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gClass[playerid] == 1)
    {
        Cars[playerid] = CreateVehicle(411, 0, 0, 0, 0, 0, 0, 60*10000);
        PutPlayerInVehicle(playerid, Cars[playerid], 0);
    }
    return 1;
}
but i dont know how to finish
Reply
#2

And what exactly do you want to do?
Reply
#3

say you have 5 skins

skin 1, when you spawn, you spawn inside a infernus
skin 2, exactly the same, but different car
skin 3 the same
skin 4 the same
skin 5 the same
Reply
#4

You where very close..

pawn Код:
public OnPlayerSpawn(playerid)
{
    switch(gClass[playerid])
    {
        case 1:
        {
            Cars[playerid] = CreateVehicle(400, 0, 0, 0, 0, 0, 0, 60*10000);
            PutPlayerInVehicle(playerid, Cars[playerid], 0);
        }
        case 2:
        {
            Cars[playerid] = CreateVehicle(401, 0, 0, 0, 0, 0, 0, 60*10000);
            PutPlayerInVehicle(playerid, Cars[playerid], 0);
        }
        case 3:
        {
            Cars[playerid] = CreateVehicle(403, 0, 0, 0, 0, 0, 0, 60*10000);
            PutPlayerInVehicle(playerid, Cars[playerid], 0);
        }
        // Etc.
    }
    return 1;
}
Reply
#5

Quote:
Originally Posted by Relixious
Посмотреть сообщение
You where very close..

pawn Код:
public OnPlayerSpawn(playerid)
{
    switch(gClass[playerid])
    {
        case 1:
        {
            Cars[playerid] = CreateVehicle(400, 0, 0, 0, 0, 0, 0, 60*10000);
            PutPlayerInVehicle(playerid, Cars[playerid], 0);
        }
        case 2:
        {
            Cars[playerid] = CreateVehicle(401, 0, 0, 0, 0, 0, 0, 60*10000);
            PutPlayerInVehicle(playerid, Cars[playerid], 0);
        }
        case 3:
        {
            Cars[playerid] = CreateVehicle(403, 0, 0, 0, 0, 0, 0, 60*10000);
            PutPlayerInVehicle(playerid, Cars[playerid], 0);
        }
        // Etc.
    }
    return 1;
}
yeah i knew about that its just the variable for Cars[playerid]
Reply
#6

Quote:
Originally Posted by thomas..
Посмотреть сообщение
yeah i knew about that its just the variable for Cars[playerid]
Then what do you want? we don't understand you.
Reply
#7

A script with all the variables sorted out ready for me to edit and use
Reply
#8

A script where all the variables are there, And it works perfectly, and compiles perfectly
Reply
#9

bump!

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)