18.12.2010, 00:40
if(strcmp(cmd, "/rp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new Float Float:y Float:z Float:Angle
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,Angle);
if (PlayerInfo[playerid][pAdmin] >= 5)
{
new car;
car = strval(tmp);
if(car == infernus)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
CreateVehicle(411,x,y,z,angle,0,0,3000);
PutPlayerInVehicle(playerid,vehicleid,0);
}
}
}
{
if(IsPlayerConnected(playerid))
{
new Float Float:y Float:z Float:Angle
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,Angle);
if (PlayerInfo[playerid][pAdmin] >= 5)
{
new car;
car = strval(tmp);
if(car == infernus)
{
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
CreateVehicle(411,x,y,z,angle,0,0,3000);
PutPlayerInVehicle(playerid,vehicleid,0);
}
}
}