29.06.2012, 22:15
pawn Код:
if(strcmp(cmd, "/gofishing", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You need to login first ! ");
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid))) == IDBOAT)) //ID BOAT
{
SendClientMessage(playerid, COLOR_GREY, " You're not in the boat!");
return 1;
}
new x_fish[256];
x_fish = strtok(cmdtext, idx);
if(!strlen(x_fish))
{
SendClientMessage(playerid, COLOR_RED, "----------------[Available Fishing]----------------");
SendClientMessage(playerid, COLOR_GRAD3, "** Boat **");
SendClientMessage(playerid, COLOR_GRAD3, "** Normal **");
SendClientMessage(playerid, COLOR_WHITE, "{33CCFF}USAGE:{FFFFFF} /gofishing [boat/normal]");
return 1;
}
new vehicleid = GetPlayerVehicleID(playerid);
if(!strcmp(x_fish,"boat",true))
{
isFishing[playerid] = 1;
}
else if(!strcmp(x_fish,"normal",true))
{
}
}//not connected
return 1;
}