27.10.2010, 09:19
RandomPlayerScreen(playerid)
This is a Function from my Selfmade Script.
RandomPlayerScreen gives the Player randomly a Screen, yuo can use it as LoginScreen, it would change on every Relog!
This is a Function from my Selfmade Script.
RandomPlayerScreen gives the Player randomly a Screen, yuo can use it as LoginScreen, it would change on every Relog!
pawn Код:
forward RandomPlayerScreen(playerid);
public RandomPlayerScreen(playerid) {
new screen = random(10);
SetPlayerInterior(playerid, 0);
switch(screen) {
case 0: {
SetPlayerPos(playerid,-346.083618,1599.942139,164.472366);
SetPlayerCameraPos(playerid,-345.877228,1601.342896,164.518951);
SetPlayerCameraLookAt(playerid,-340.641968,1938.658447,83.722984); }
case 1: {
SetPlayerPos(playerid,1485.0194,-892.1475,74.4098);
SetPlayerCameraPos(playerid,1479.7717,-886.2401,73.9461);
SetPlayerCameraLookAt(playerid,1415.3817,-807.9097,85.0613); }
case 2: {
SetPlayerPos(playerid,589.1550,373.1002,15.7948);
SetPlayerCameraPos(playerid,543.9864,349.3647,14.9968);
SetPlayerCameraLookAt(playerid,422.1727,599.0107,19.1812); }
case 3: {
SetPlayerPos(playerid,2155.0137,1129.7897,18.6397);
SetPlayerCameraPos(playerid,2149.3992,1132.6051,24.3125);
SetPlayerCameraLookAt(playerid,2105.0222,1156.5306,11.6470); }
case 4: {
SetPlayerPos(playerid,-2818.1499,1144.0898,19.2409);
SetPlayerCameraPos(playerid,-2808.0366,1161.1864,20.3125);
SetPlayerCameraLookAt(playerid,-2817.9348,1143.5291,19.3762); }
case 5: {
SetPlayerPos(playerid,2144.2822,1279.8054,7.9840);
SetPlayerCameraPos(playerid,2154.24,1306.50,41.46);
SetPlayerCameraLookAt(playerid,2273.45,1262.09,33.78); }
case 6: {
SetPlayerPos(playerid,-1771.7858,-565.5638,-0.5834);
SetPlayerCameraPos(playerid,-1771.4641,-566.3715,16.4844);
SetPlayerCameraLookAt(playerid,2105.0222,1156.5306,11.6470); }
case 7: {
SetPlayerPos(playerid,-1254.7159,953.9262,139.2734);
SetPlayerCameraPos(playerid,-1256.6115,953.2058,139.2734);
SetPlayerCameraLookAt(playerid,-1529.6639,689.2731,45.3311); }
case 8: {
SetPlayerPos(playerid,-2295.7979,712.2764,69.7422);
SetPlayerCameraPos(playerid,-2265.6101,730.9575,49.2969);
SetPlayerCameraLookAt(playerid,-2243.5103,731.5889,62.7217); }
case 9: {
SetPlayerPos(playerid,50.0000,50.0000,70.0000);
SetPlayerCameraPos(playerid,50.0000,50.0000,70.2203);
SetPlayerCameraLookAt(playerid,499.8851,504.5435,7.6593); } } }