public OnPlayerRequestSpawn(playerid)
{
new file[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "\\Users\\%s.ini", pname);
if (dini_Int(file, "team") == 1) {
SetPlayerPos(playerid,-217.4578,978.8492,19.5014);
GivePlayerWeapon(playerid, 24, 250);
return 1;
}
else if (dini_Int(file, "team") == 2) {
SetPlayerPos(playerid,-320.0699,1048.6085,20.3403);
return 1;
}
else if (dini_Int(file, "team") == 3) {
SetPlayerPos(playerid, -73.5261,16.3937,5.9605);
return 1;
}
else if (dini_Int(file, "team") == 4) {
SetPlayerPos(playerid, -136.2579,1116.7528,20.1966);
return 1;
}
else if (dini_Int(file, "team") == 5) {
SetPlayerPos(playerid, -370.5210,1167.1810,20.2719);
return 1;
}
else if (dini_Int(file, "team") == 6) {
SetPlayerPos(playerid, 106.6390,-182.9938,1.4942);
return 1;
}
else if (dini_Int(file, "team") == 7) {
SetPlayerPos(playerid, 870.1599,-25.2081,63.9706);
return 1;
}
else if (dini_Int(file, "team") == 8) {
SetPlayerPos(playerid, -314.2366,1774.3470,43.6406);
return 1;
}
else if (dini_Int(file, "team") == 9) {
SetPlayerPos(playerid, 263.1817,21.6686,3.4332);
return 1;
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
new file[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(file, sizeof(file), "Users/%s.ini", pname);
new t=dini_Int(file, "team");
if (t == 1) {
SetPlayerPos(playerid,-217.4578,978.8492,19.5014);
GivePlayerWeapon(playerid, 24, 250);
return 1;
}
else if (t == 2) {
SetPlayerPos(playerid,-320.0699,1048.6085,20.3403);
return 1;
}
else if (t == 3) {
SetPlayerPos(playerid, -73.5261,16.3937,5.9605);
return 1;
}
else if (t == 4) {
SetPlayerPos(playerid, -136.2579,1116.7528,20.1966);
return 1;
}
else if (t == 5) {
SetPlayerPos(playerid, -370.5210,1167.1810,20.2719);
return 1;
}
else if (t == 6) {
SetPlayerPos(playerid, 106.6390,-182.9938,1.4942);
return 1;
}
else if (t == 7) {
SetPlayerPos(playerid, 870.1599,-25.2081,63.9706);
return 1;
}
else if (t == 8) {
SetPlayerPos(playerid, -314.2366,1774.3470,43.6406);
return 1;
}
else if (t == 9) {
SetPlayerPos(playerid, 263.1817,21.6686,3.4332);
return 1;
}
return 1;
}
public OnPlayerRequestSpawn(playerid) |