Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- main(){ print("\n\nBare Script\n\n"); }
- new pName[MAX_PLAYERS][24], zstring[128];
- public OnPlayerConnect(playerid)
- {
- GetPlayerName(playerid, pName[playerid], 24);
- GameTextForPlayer(playerid,"~w~SA-MP: ~r~Bare Script",5000,5);
- format(zstring, 128, " %s Joined the server", pName[playerid]);
- SendClientMessageToAll(0xFFFF00FF, zstring);
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- for(new i=0; i<24; i++) pName[playerid][i]='\0'; // Clean the pName slot
- return SendClientMessageToAll(0xFFFF00FF, zstring);
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerInterior(playerid,0);
- TogglePlayerClock(playerid,0);
- SetPlayerPos(playerid,25.4893,-41.4008,12.0234);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerInterior(playerid,14);
- SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
- SetPlayerFacingAngle(playerid, 270.0);
- SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
- SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
- return 1;
- }
- public OnGameModeInit()
- {
- SetGameModeText("Bare Script");
- ShowPlayerMarkers(1);
- ShowNameTags(1);
- for(new i=0; i < 300; i++) AddPlayerClass(i,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,-1,-1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment