30.01.2012, 11:59
Guys this is right code?
just that the other codes didnt worked and they gived errors >UP IS RIGHT CODE< but it dont work like /Startmissle
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;
}
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;
}