Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //enums
- enum playerInfo{
- eingeloggt,
- level,
- db_id,
- alevel,
- fraktion,
- rang,
- spawnchange
- }
- public OnPlayerSpawn(playerid)
- {
- if(!isPlayerInFrakt(playerid, 0)){
- if(sInfo[playerid][spawnchange]==1)
- {
- new fID;
- fID = sInfo[playerid][fraktion];
- SetPlayerPos(playerid, fInfo[fID][f_x],fInfo[fID][f_y],fInfo[fID][f_z]);
- SetPlayerFacingAngle(playerid, fInfo[fID][f_r]);
- SetPlayerInterior(playerid, fInfo[fID][f_inter]);
- SetPlayerVirtualWorld(playerid, fInfo[fID][f_world]);
- SetPlayerColor(playerid, fInfo[fID][f_color]);
- }
- }
- return 1;
- }
- ocmd:spawnchange(playerid, params[])
- {
- if(isPlayerInFrakt(playerid, 0))return SendClientMessage(playerid, COLOR_WHITE, "Du bist in keiner Fraktion.");
- if(sInfo[playerid][spawnchange]==0)
- {
- sInfo[playerid][spawnchange]=1;
- }
- if(sInfo[playerid][spawnchange]==1)
- {
- sInfo[playerid][spawnchange]=0;
- }
- SendClientMessage(playerid,COLOR_WHITE, "Spawn wurde geƤndert.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement