22.06.2016, 21:24
Whuut?
This is better, no?
PHP код:
PF: OnPlayerSpawn(playerid)
{
if(IsPlayerInDM[playerid] == true)
{
SetPlayerPos(playerid, -2050.0810547,-7609.0312500,2.2020721);
GivePlayerWeapon(playerid, 26, 900);
GivePlayerWeapon(playerid, 24, 900);
SetPlayerFacingAngle(playerid, 0);
}
else {
// Place Current spawn info here. Outside of DM
}
return true;
}
PHP код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerInDM[playerid])
{
SetPlayerPos(playerid, -2050.0810547,-7609.0312500,2.2020721);
GivePlayerWeapon(playerid, 26, 900);
GivePlayerWeapon(playerid, 24, 900);
SetCameraBehindPlayer(playerid);
}
return 1;
}