- 0
Problema /tow
-
Similar Content
-
- 2 replies
- 77 views
-
- 7 answers
- 599 views
-
- 2 answers
- 129 views
-
- 2 answers
- 160 views
-
- 3 answers
- 149 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
fytza
Nick:fytza
Problema:/tow - cand intru intr-o masinina de la tcc si vreau sa remorchez o masina , dau /tow si zice : "Nu esti in o masina de Remorcari !
Erori / warnings: -
Lini/script:
Ai incercat sa rezolvi singur ?:da...
[pawn] if(strcmp(cmdtext, "/tow", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerData[playerid][pMember] == 10 || PlayerData[playerid][pLeader] == 10)
{
if(IsPlayerInVehicle(playerid, 193) || IsPlayerInVehicle(playerid, 194) || IsPlayerInVehicle(playerid, 195) || IsPlayerInVehicle(playerid, 196) || IsPlayerInVehicle(playerid, 197) || IsPlayerInVehicle(playerid, 198) || IsPlayerInVehicle(playerid, 199) || IsPlayerInVehicle(playerid, 200))
{
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid)))
{
if(PlayerData[playerid][pTow] >= 1)
{
PlayerData[playerid][pTow] -= 1;
CP[playerid] = 111;
SetPlayerCheckpoint(playerid, 2412.4646,-1426.3083,23.9848, 5.0);
SendClientMessage(playerid, COLOR_YELLOW, "Condu pana la garaj pentru a distruge rabla.");
format(string, sizeof(string), "UPDATE players SET Tow='%d' WHERE id=%d", PlayerData[playerid][pTow], PlayerData[playerid][pSQLID]);
mysql_query(string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu mai poti tracta pana la PayDay.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu ai tractat o masina(foloseste '2') !");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Nu esti in o masina de Remorcari !");
}
}
}
}[/pawn]
Link to comment
Share on other sites
2 answers to this question
Recommended Posts