Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- main(){}
- enum e_pInfo {
- bool:pCity,
- bool:pFistSpawn,
- pSkin
- };
- new pInfo[MAX_PLAYERS][e_pInfo];
- static const Float:SpawnCoords[2][4][5] = {
- {//LS
- {821.2404, -1359.6903, -0.5078, 210.3868},
- {842.2728, -1378.6709, -0.5015, 210.3868},
- {852.8189, -1388.1155, -0.5015, 135.0018},
- {821.2404, -1359.6903, -0.5078, 135.0018}
- },
- {//SF
- {-1977.5963, 130.6275, 27.6940, 135.0018},
- {-1966.0291, 159.9727, 27.6940, 135.0018},
- {-1977.5817, 160.8559, 27.6940, 210.3868},
- {-1970.4113, 161.7197, 27.6875, 210.3868}
- }
- };
- public OnPlayerConnect(playerid)
- {
- pInfo[playerid][pCity] = !!random(2);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new rand = random(sizeof(SpawnCoords[]));
- SetSpawnInfo(playerid, 0, pSkin, SpawnCoords[pInfo[playerid][pCity]][rand][0], SpawnCoords[pInfo[playerid][pCity]][rand][1], SpawnCoords[pInfo[playerid][pCity]][rand][2], SpawnCoords[pInfo[playerid][pCity]][rand][3], 0, 0, 0, 0, 0, 0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement