new FirstSpawn[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
. . .
if(FirstSpawn[playerid] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1446.4323,-2287.0105,13.5469);
SetPlayerFacingAngle(playerid, 90.0);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, grün, "Als kleine Starthilfe hast du $500 bekommen.");
SendClientMessage(playerid, grün, "Viel Spaß auf dem Server!");
GivePlayerMoney(playerid, 500);
FirstSpawn[playerid] = 0;
}
...
if (strcmp(cmd, "/register", true)==0)
{
. . .
forward IsAtTankstelle();
public OnGameModeInit()
{
. . .
SetTimerEx("IsAtTankstelle", 500, 1);
. . .
public IsAtTelefonzelle()
{
for(new playerid=0; playerid<GetMaxPlayers(); playerid++)
{
if(PlayerToPoint(1, playerid, 1450.1318,-2283.4863,13.5469))
{
GameTextForPlayer(playerid, "Du bist an einer Telefonzelle hier kannst du telefonieren oder so ;D" , 5000 , 0);
return 1;
}
}
return 1;
}
EDIT : Nur ein Vorschlag weiss nicht ob es funzt ;!