15.03.2009, 21:53
Hi I am trying to add a Teleporter that if you Right on the map you Teleport there. And i have it in and it dose not woork for me. Here is my OnPlayerConnect
Any idear wuy this dose not woork?
pawn Код:
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~]Island: ~r~Reykjavik]",5000,5);
SendPlayerFormattedText(playerid, "Velkomin til Reykjavнkur, Fyrir Hjalp skrifiр /hjalpin.", 0);
SendPlayerFormattedText(playerid, "Til aр nэskrб ykkur geriр /nyskra [lykilorр]", 0);
SendPlayerFormattedText(playerid, "Til aр Innskrб ykkur geriр юб /innskra [lykilorр], geriр/reglur til aр sjб Reglur.", 0);
SendPlayerFormattedText(playerid, "Hйr eru allir vinir og eru ekki meр neinn уsуma. Юъ ert aр spila б нslandi н Reykjavнk", 0);
gActivePlayers[playerid]++;
gLastGaveCash[playerid] = GetTickCount();
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw6);
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s Hefur komiр inn.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
AllowPlayerTeleport( playerid, 1 );
return 1;
}