HELP!
#6

Guys this is right code?
pawn Код:
dcmd_adcar(playerid, params[])
{
    if(AdminLevel[playerid] == 5) {
        #pragma unused params
        if (!IsPlayerInAnyVehicle(playerid)) {
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, Float:x, Float:y, Float:z);
            CreateVehicle(411,Float:x, Float:y, Float:z,100,0,0,99999);
            SendClientMessage(playerid, COLOR_NUCLEAR,"Created Successfuly");
        }
        else SendClientMessage(playerid, COLOR_RED,"Error: You already have a vehicle");
    }
    return 1;
}
just that the other codes didnt worked and they gived errors >UP IS RIGHT CODE< but it dont work like /Startmissle

pawn Код:
dcmd_startmissle(playerid, params[])
{
#pragma unused params
if( gTeam[ playerid ] != TEAM_NUCLEAR )
{
new Float:x, Float:y, Float:z;

for( new i = 0; i < MAX_PLAYERS; i ++ )
{
if( IsPlayerConnected( i ) && ( i != playerid ))
{
PlayerPlaySound( i, 1190, 0.0, 0.0, 0.0 );
GetPlayerPos( i, x, y, z );
CreateExplosion( x, y, z, 7, 10.0 );
CreateExplosion( x, y, z, 7, 10.0 );
CreateExplosion( x, y, z, 7, 10.0 );
SendClientMessageToAll( COLOR_NUCLEAR, "|- Nuclear has Killed! everyone! -|" );
}
}
}
return 1;
}
Reply


Messages In This Thread
HELP! - by James Coral - 30.01.2012, 11:35
Re: HELP! - by MasterJoker - 30.01.2012, 11:36
Re: HELP! - by lamarr007 - 30.01.2012, 11:38
Re: HELP! - by Konstantinos - 30.01.2012, 11:40
Re: HELP! - by James Coral - 30.01.2012, 11:41
Re: HELP! - by James Coral - 30.01.2012, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)