27.09.2012, 13:49
pawn Код:
if(vwindowsdown[VehicleID] == 0)
{
vwindowsdown[VehicleID] = 2;
new Name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "* %s folds his arm up to his neck, holding his arm and swinging his elbow towards the car window. *", RemoveUnderScore(playerid));
ProxDetector(10.0, playerid, string, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA);
if(VehicleID == tutorialvehicle[playerid])
{
tutorialsdone[playerid]++;
SendClientMessage(playerid, 0xFFCC9999, "Congratulations on learning the basics of /vinteract.");
SendClientMessage(playerid, 0xFFCC9999, "Please continue to use /vinteract, when you are finished type: /continue.");
SendClientMessage(playerid, 0xFFFFFFFF, " ");
}
return 1;
}
if(vwindowsdown[VehicleID] == 1)
{
SendClientMessage(playerid, 0x66666666, "The window is down.");
return 1;
}
if(vwindowsdown[VehicleID] == 2)
{
SendClientMessage(playerid, 0x66666666, "The window is already smashed.");
return 1;
}