04.04.2009, 15:48
Quote:
Originally Posted by ..::DorkAZoid::..
Quote:
|
Yours:
pawn Код:
if(strcmp(cmdtext,"/car",true)==0)
{
SendClientMessage(playerid, 0xFF9933AA, "Vehicle Commands:");
SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
SendClientMessage(playerid, 0x00BFFFAA, "/offroad /shadow /twist /ahab /mega /rimshine /wires /classic /(un)lock");
SendClientMessage(playerid, 0xFFFFFFAA, "/import/grove /switch /cutter /dollar /trance /atomic /virtual /access");
SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
return 1;
}
if(strcmp(cmdtext,"/help",true)==0)
{
SendClientMessage(playerid, 0xFFFFFFAA, "FILTERSCRIPT Has Been Made By DorkAZoid");
return 1;
}
if (strcmp("/AFK", cmdtext, true, 10) == 0)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s is away from keyboard", pName);
SendClientMessageToAll(0xFF9900AA, string);
return 1;
}
if (strcmp("/BACK", cmdtext, true, 10) == 0)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s is back", pName);
SendClientMessageToAll(0xFF9900AA, string);
return 1;
}
if (strcmp("/lock", cmdtext, true, 10) == 0)
{
if (GetPlayerState(playerid) == 2)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
}
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_YELLOW, "Vehicle Locked.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not driving a vehicle.");
}
return 1;
}
if (strcmp("/unlock", cmdtext, true, 10) == 0)
{
if (GetPlayerState(playerid) == 2)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
}
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_YELLOW, "Vehicle Unlocked.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not driving a vehicle.");
}
return 1;
}
if(strcmp(cmdtext, "/hydra", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1087);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if (strcmp(cmdtext, "/para", true)==0)
{
GivePlayerWeapon(playerid, 46, 1);
return 1;
}
if(strcmp(cmdtext, "/offroad", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1025);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/shadow", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1073);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/mega", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1074);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/rimshine", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1075);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/wires", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1076);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/classic", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1077);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/twist", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1078);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/cutter", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1079);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/switch", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1080);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/grove", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1081);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/import", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1082);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/dollar", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1083);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/trance", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1084);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/atomic", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1085);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/ahab", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1096);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/virtual", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1097);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/access", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1098);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
pawn Код:
if(strcmp(cmdtext,"/wheels",true)==0)
{
SendClientMessage(playerid, 0xFF9933AA, "Tunning Wheels:");
SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
SendClientMessage(playerid, 0x00BFFFAA, "/offroad /shadow /twist /ahab /mega /rimshine /wires /classic");
SendClientMessage(playerid, 0xFFFFFFAA, "/import/grove /switch /cutter /dollar /trance /atomic /virtual /access");
SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
return 1;
}
if(strcmp(cmdtext, "/hydra", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1087);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/offroad", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1025);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/shadow", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1073);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/mega", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1074);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/rimshine", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1075);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/wires", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1076);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/classic", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1077);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/twist", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1078);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/cutter", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1079);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/switch", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1080);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/grove", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1081);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/import", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1082);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/dollar", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1083);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/trance", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1084);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/atomic", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1085);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/ahab", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1096);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/virtual", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1097);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if(strcmp(cmdtext, "/access", true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(vehicleid, 1098);
}else{
SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
}
return 1;
}
if (strcmp(cmd, "/afk", true) == 0)
{
if(afk[playerid] == 1) return SendClientMessage(playerid, 0xAA3333AA, "You are already Away From Keyboard ");
else
{
afk[playerid] = 1;
SetPlayerColor(playerid,AFK);
TogglePlayerControllable(playerid,0);
new string[256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "-> %s is now Away From Keyboard!", pName);
SendClientMessageToAll(0xFFFF00AA, string);
SendClientMessage(playerid, 0x33AA33AA, "Type /back when you are back to the keyboard!");
}
return 1;
}
if (strcmp(cmd, "/back", true) == 0)
{
if(afk[playerid] ==0) return SendClientMessage(playerid, 0xAA3333AA, "You are not Away From Keyboard!");
else
{
afk[playerid] = 0;
TogglePlayerControllable(playerid,1);
new string[256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "-> %s is now back!", pName);
SendClientMessageToAll(0xFFFF00AA, string);
}
return 1;
}