13.06.2012, 10:17
Quote:
You say that you spawn in the middle of nowhere? This place isn't a farm? If so, tell me.
|
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gPlayerLogged[i])
{
UpdateScore();
new ping = GetPlayerPing(i);
if (ping > 1050)
{
if (PingCheck[i] == 20)
{ Kick(i); PingCheck[i] = 0; }
if (PingCheck[i] < 20)
PingCheck[i]++;
} if(TutorialStage[i] == 1) {
SetPlayerPos(i, 1460.2792,-975.7952,108.1177);
SetPlayerCameraPos(i, 1460.2792,-975.7952,108.1177); SetPlayerCameraLookAt(i, 1408.4354,-791.1121,84.7171);
ClearScreen(i);
SendClientMessage(i, COLOR_ORANGE, "- Introduction -");
SendClientMessage(i, COLOR_WHITE, "Welcome to the PRototype Gamning SA:MP Server.");
SendClientMessage(i, COLOR_WHITE, "A quick tutorial for all players");
SendClientMessage(i, COLOR_ORANGE, "Forum Website:Comming soon");
TutorialStage[i] = 2;
} else if(TutorialStage[i] == 2) {
SetPlayerPos(i, 1451.6960,-1679.4750,98.8276);
SetPlayerCameraPos(i, 1451.6960,-1679.4750,98.8276); SetPlayerCameraLookAt(i, 1571.5203,-1676.1498,0.1280);
ClearScreen(i);
SendClientMessage(i, COLOR_ORANGE, "Jobs");
SendClientMessage(i, COLOR_WHITE, "Some of the jobs, there are ex. Farmer, Mechanic, Materials Deliver, Detective,");
SendClientMessage(i, COLOR_WHITE, "Trucker, Drug Dealer, Arms Dealer.");
SendClientMessage(i, COLOR_GRAD2, "Now we are heading on to the basic rules and commands.");
TutorialStage[i] = 3;
} else if(TutorialStage[i] == 3) {
gPlayerLogged[i] = 1;
SpawnPlayer(i);
ClearScreen(i);
SendClientMessage(i, COLOR_WHITE, "If you have any questions, use /askq. If anybody are");
SendClientMessage(i, COLOR_WHITE, "breaking the rules simply use /report, and to view the");
SendClientMessage(i, COLOR_WHITE, "To change your spawn to last leaving use /spawn.");
SendClientMessage(i, COLOR_WHITE, " ");
SendClientMessage(i, COLOR_ORANGE, "- RG:RP Staff.");
TogglePlayerControllable(i, 1);
SetCameraBehindPlayer(i);
SpawnPlayer(i);
SetPlayerSpawn(i);
PlayerInfo[i][pCash] = 500;
SetPlayerCash(i,PlayerInfo[i][pCash]);
PlayerInfo[i][pTut] = 1;
TutorialStage[i] = 0;
I spawn right here on last pos on my tutorial.
Код:
SetPlayerPos(i, 1451.6960,-1679.4750,98.8276);