#1

im making a gamemode
but
well when the player spawns the class

he is teleported somewhere

i have 6 parks

how do i make the player teleport randomly on 6 parks
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
        new r = random(5);
        if (r == 0){
        SetPlayerPos(playerid, X,Y,Z);}//First Park Positions
        else if (r == 1){
        SetPlayerPos(playerid, X,Y,Z);}//Second Park Positions
        else if (r == 2){
        SetPlayerPos(playerid, X,Y,Z);}//Third Park Positions
        else if (r == 3){
        SetPlayerPos(playerid, X,Y,Z);}//Fourth Park Positions
        else if (r == 4){
        SetPlayerPos(playerid, X,Y,Z);}//Fifth Park Positions
        else if (r == 5){
        SetPlayerPos(playerid, X,Y,Z);}//Sixth Park Positions
        return 1;
}
I Hope you got the idea.
Reply
#3

wow thankx! man!!

i even wana knw
Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("Blank Script");
	AddPlayerClass(299, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(33, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(181, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(22, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
i use this for [player spawn

but when i connect the server
i dont see any player

it says <, > , spawn thats it!!

no player seenn

thanxxx
Reply
#4

'Make a proper subject with a short description, such as 'Gates won't open' or 'Game crashes instantly''
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)