28.01.2011, 14:19
(
Последний раз редактировалось Divine; 28.01.2011 в 14:59.
)
this one is fixes >> go below
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/lxgiwyl", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "No Thug's Tools For You Moron! xD");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/stateofemergency", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "CYA go to hell");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/crazytown", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "^_^");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/anoseonglass", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "GO watch crank high woltage");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/fullclip", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "shoot you'r self in the head");
Kick(playerid);
return 1;
}
return 0;
}
if(strcmp(cmdtext, "/cfvfgmj", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "Have some fog biatch!");
Kick(playerid);
return 1;
}
{
if (strcmp(cmdtext,"/LV",true,0) == 0)
{
if (IsPlayerInAnyVehicle(playerid) == 0)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0xF97804FF, "Find A Car);
}
}
if (IsPlayerInAnyVehicle(playerid) == 1)
{
if (GetPlayerState(playerid) == 3)
{
SendClientMessage(playerid, 0xF97804FF, "You Are not the driver");
}
}
if (IsPlayerInAnyVehicle(playerid) == 0)
{
if (GetPlayerState(playerid) == 3)
{
new VID;
VID = GetPlayerVehicleID(playerid);
SetPlayerPos(VID, 2122.0183, 1430.5382, 11.9497);
}
}
return 1;
}
return 0; // warning 217: loose indentation
}
// all below unreachable
#pragma tabsize 0
because you still have code under the return 0, which will never get called since you terminate it before it gets reached
|
}
}
return 1;
}
return 0; // warning 217: loose indentation
}
// the rest is unreachable
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
bleh blah whats left other thins...
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/lxgiwyl", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "No Thug's Tools For You Moron! xD");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/stateofemergency", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "CYA go to hell");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/crazytown", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "^_^");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/anoseonglass", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "GO watch crank high woltage");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/fullclip", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "shoot you'r self in the head");
Kick(playerid);
return 1;
}
if(strcmp(cmdtext, "/cfvfgmj", true) == 0)
{
SendClientMessage(playerid, 0xF97804FF, "Have some fog biatch!");
Kick(playerid);
return 1;
}
{
if (strcmp(cmdtext,"/LV",true,0) == 0)
{
if (IsPlayerInAnyVehicle(playerid) == 0)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0xF97804FF, "Find A Car!");
}
}
if (IsPlayerInAnyVehicle(playerid) == 1)
{
if (GetPlayerState(playerid) == 3)
{
SendClientMessage(playerid, 0xF97804FF, "You Are not the driver");
}
}
if (IsPlayerInAnyVehicle(playerid) == 0)
{
if (GetPlayerState(playerid) == 3)
{
new VID;
VID = GetPlayerVehicleID(playerid);
SetPlayerPos(VID, 2122.0183, 1430.5382, 11.9497);
}
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}