[Ajuda] Comando MSP
#10

PHP Code:
CMD:msp(playeridparams[]) {
    if(
IsPlayerInAnyVehicle(playerid))
        return 
SendClientMessage(playeridCOLOUR_ERRO"[ERRO]: Vocк deve sair de seu veнculo.");
    if(
CallRemoteFunction("LocalInvalidoParaSpawn","i",playerid) == 1)
        return 
SendClientMessage(playeridCOLOUR_ERRO,"[ERRO]: Proibido usar o /MSP ou /NASCER neste local");
    if(
GetPlayerInterior(playerid) != 0)
        return 
SendClientMessage(playeridCOLOUR_ERRO,"[ERRO]: Vocк nгo pode nascer em interiores");
    if(
PlayerCustomSpawn[playerid] == 0) {
        
GetPlayerPos(playeridPlayerCustomSpawn_X[playerid], PlayerCustomSpawn_Y[playerid], PlayerCustomSpawn_Z[playerid]);
        
GetPlayerFacingAngle(playeridPlayerCustomSpawn_F[playerid]);
        
PlayerCustomSpawn_I[playerid] = GetPlayerInterior(playerid);
    }
    if(
IsPlayerInAnyVehicle(playerid)) {
        
GetVehicleZAngle(GetPlayerVehicleID(playerid),PlayerCustomSpawn_F[playerid]);
    }
    if(
PlayerCustomSpawn[playerid] == 0) {
        
PlayerCustomSpawn[playerid] = 1;
        
SendClientMessage(playeridCOLOUR_INFORMACAO"[INFO]: Vocк nascerб aqui, quando morrer");
        
SetSpawnInfo(playerid0GetPlayerSkin(playerid), PlayerCustomSpawn_X[playerid], PlayerCustomSpawn_Y[playerid], PlayerCustomSpawn_Z[playerid], PlayerCustomSpawn_F[playerid], 000000);
    }
    else {
        
PlayerCustomSpawn[playerid] = 0;
        
SendClientMessage(playeridCOLOUR_INFORMACAO"[INFO]: Vocк nascerб aleatoriamente por Las Venturas");
    }
    return 
1;

Acrescentei SetSpawnInfo, tente agora (Ainda organizei o cуdigo).
Reply


Messages In This Thread
Comando MSP - by RogerX - 06.11.2018, 20:40
Re: Comando MSP - by ipsLuan - 06.11.2018, 21:20
Re: Comando MSP - by GSantana - 06.11.2018, 21:30
Re: Comando MSP - by RogerX - 06.11.2018, 21:49
Re: Comando MSP - by ipsLuan - 06.11.2018, 21:55
Re: Comando MSP - by RogerX - 06.11.2018, 22:10
Re: Comando MSP - by zF3lKy3 - 06.11.2018, 23:38
Re: Comando MSP - by zF3lKy3 - 06.11.2018, 23:41
Re: Comando MSP - by RogerX - 06.11.2018, 23:51
Re: Comando MSP - by RiqueP - 07.11.2018, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)