23.01.2012, 05:49
pawn Код:
if(strcmp(cmd, "/Surface", true) == 0)
{
if(gTeam[playerid] == Russia)
{
if(Submerged == 1)
{
SendClientMessage(playerid, 0x0000FFFF, "The Sub is surfacing now please wait....");
MoveObject(Submarine,-3844.18, 1727.39, 4.14, 10, -4.00, 0.00);
Submerged = 0;
}
SendClientMessage(playerid, 0x0000FFFF, "Sub is already surfaced.");
}
SendClientMessage(playerid, 0x0000FFFF, "You have to be Russian to access the codes to surface.");
return 1;
}
if(strcmp(cmd, "/Submerge", true) == 0)
{
if(gTeam[playerid] == Russia)
{
if(Submerged == 0)
{
if(O2Level >100)
{
SendClientMessage(playerid, 0x0000FFFF, "The Sub is Submerging now please wait....");
MoveObject(Submarine,-3844.18, 1727.39, -10.00, 10, 0.00, 0.00);
Submerged = 1;
}
SendClientMessage(playerid, 0x0000FFFF, "Sub has not recharged its O2");
}
SendClientMessage(playerid, 0x0000FFFF, "Sub is already underwater.");
}
SendClientMessage(playerid, 0x0000FFFF, "You have to be Russian to access the codes the submerge.");
return 1;
}
before you ask about using ZCMD or YCMD or something like that, i will change it over when i get time :P.
can someone please help me