27.07.2009, 02:20
Quote:
Originally Posted by [SU
BP13 ]
here is a example i'm currently using it in my script. Код:
new Info[4]; OnGameModeInit(); { Info[0] = CreatePickup(1239, 23, -2909.0461,-76.0032,3.3680); Info[1] = CreatePickup(1239, 23, -471.6951,2198.6221,46.4031); Info[2] = CreatePickup(1239, 23, -473.3904,2208.1060,47.1292); Info[3] = CreatePickup(1239, 23, -482.6900,2218.7649,48.8604); } public OnPlayerPickUpPickup(playerid, pickupid) { if (pickupid == Info[0]) { GameTextForPlayer(playerid,"~g~Info:~n~~w~Only administrators may enter the admincastle.~n~~r~Trying to enter as a non-admin is at your own risk.",7000,3); PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0); } if (pickupid == Info[1]) { GameTextForPlayer(playerid,"~g~Info:~n~~w~To get started type /teles",5000,3); PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0); } if (pickupid == Info[2]) { GameTextForPlayer(playerid,"~g~Info:~n~~w~Use /Home to teleport back to this place.",5000,3); PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0); } if (pickupid == Info[3]) { GameTextForPlayer(playerid,"~g~Info:~n~~w~If you deathmatch here you will be kicked/banned!",5000,3); PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0); } return 1; } |