06.01.2015, 23:03
Hi
i Have 3 Problem Now
1.The Checkpoints Not Disable
2.i Want Make Last CP Not Showing only After i Done Take All CP Race
3. CP Race Error why idk see
and this Last CP this Race CP i Want Make it not showing after take all this cp from 1 to 10 with disable cuz its not disable
please help me +rep
thanks
i Have 3 Problem Now
1.The Checkpoints Not Disable
2.i Want Make Last CP Not Showing only After i Done Take All CP Race
3. CP Race Error why idk see
Quote:
(80) : warning 213: tag mismatch |
Quote:
Last = CreateDynamicRaceCP(-1381.9700,1498.3158,8.5625, 3.0, -1, -1, -1, 100.0); |
PHP код:
new CP[MAX_PLAYERS] = 0;
new Last;
CMD:rob(playerid, params[])
{
CP[playerid] = 1;
CreateDynamicCP(-1447.2351,1502.1000,1.7366, 6.0, -1, -1, -1, 100.0);
SendClientMessage(playerid, 0xFF0000, "You Are Robbing Now.");
return 1;
}
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
if(CP[playerid] == 1)
{
CreateDynamicCP(-1454.8569,1489.1010,7.1016, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 2)
{
CreateDynamicCP(-1428.7382,1490.0945,7.1016, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 3)
{
CreateDynamicCP(-1402.7249,1486.1351,7.1016, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 4)
{
CreateDynamicCP(-1382.1962,1480.3761,8.5625, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 5)
{
CreateDynamicCP(-1376.8267,1492.7152,11.2031, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 6)
{
CreateDynamicCP(-1390.7821,1483.1436,1.8672, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 7)
{
CreateDynamicCP(-1434.3047,1483.0374,1.8672, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 8)
{
CreateDynamicCP(-1381.9700,1498.3158,8.5625, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 9)
{
CreateDynamicCP(-1381.9700,1498.3158,8.5625, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
if(CP[playerid] == 10)
{
CreateDynamicCP(-2392.9497,2312.1875,-0.1095, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] ++;
}
PHP код:
else if(CP[playerid] == 11)
{
Last = CreateDynamicRaceCP(-1381.9700,1498.3158,8.5625, 3.0, -1, -1, -1, 100.0);
DisablePlayerCheckpoint(playerid);
CP[playerid] = 0;
}
return 1;
}
PHP код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == Last)
{
GivePlayerMoney(playerid, 40000+random(120000));
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+6);
}
return 1;
}
thanks