04.10.2009, 21:56
pawn Код:
if(strcmp(cmd, "/wi", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(IsABike(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERROR:] Bikes don't have windows.");
return 1;
}
if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 1)
{
if(PlayerInfo[playerid][pSex] == 1)
{
PlayerActionMessage(playerid,15.0,"has just rolled the windows down in his vehicle.");
}
else
{
PlayerActionMessage(playerid,15.0,"has just rolled the windows down in her vehicle.");
}
CarWindowStatus[GetPlayerVehicleID(playerid)] = 0;
}
else if(CarWindowStatus[GetPlayerVehicleID(playerid)] == 0)
{
if(PlayerInfo[playerid][pSex] == 1)
{
PlayerActionMessage(playerid,15.0,"has just rolled up the windows in his vehicle.");
}
else
{
PlayerActionMessage(playerid,15.0,"has just rolled up the windows in her vehicle.");
}
CarWindowStatus[GetPlayerVehicleID(playerid)] = 1;
}
}
else
{
SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[ERROR:] Your not in a vehicle!");
}
return 1;
}