beginner's question (placing a red circle)
#1

hello, I'm quite new to this thing and started off trying to create a red circle (like the ones that start missions in single player gta sa)

Код:
#define FILTERSCRIPT

#include <a_samp>
#include <core>
#include <float>

public OnGameModeInit()
{
	AddPlayerClass(281, 933.9706, -1224.7810,16.9048, 266.4503, 0, 0, 0, 0, 0, 0);
}
have tried doing it in different ways but none gave me results. i have the file compiled, and at server start it is loaded, but still no red circle. i'm guessing there a mistake in my code, but i can't seem to figure it out.
looking forward to any kind of help. thanks.
Reply
#2

Use
pawn Код:
SetPlayerCheckpoint(playerid,float:x,float:y,float:z,float:angle);
Reply
#3

Quote:
Originally Posted by Adil
Посмотреть сообщение
Use
pawn Код:
SetPlayerCheckpoint(playerid,float:x,float:y,float:z,float:angle);
Add that (with your coordinates) to OnPlayerSpawn, instead of OnGameModeInit.
Reply
#4

okay the example on that polish site missed with the function then. thanks for helping me out.
Reply
#5

Read this if you're facing further difficulties. https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)