- 0
Cerere Ajutor Stunt Point ..
-
Similar Content
-
- 47 replies
- 11,832 views
-
- 4 replies
- 129 views
-
- 5 replies
- 291 views
-
- 1 reply
- 195 views
-
- 2 replies
- 181 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
xt3z0ne
NickJohnny
Problema:Deci cand fac un stunt in loc sai dea 20 stunt point i da de 7 ori cate 20 sp = 140:| Si nu stiu ce sai mai fac...
Erori / warnings:~
Lini/script:[pawn]public OnPlayerEnterCheckpoint(playerid)
{
new cpid = SetPlayerCheckpoint(playerid,2118.5864, 1483.0841, 23.4166,4.0);
if (cpid == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
new cpid2 = SetPlayerCheckpoint(playerid,1851.7083, 1426.3226, 15.9196,4.0);
if (cpid2 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
new cpid3 = SetPlayerCheckpoint(playerid,2000.9673, 1213.1139, 17.0789,4.0);
if (cpid3 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
new cpid4 = SetPlayerCheckpoint(playerid,2396.9082, 1146.4279, 33.2691,4.0);
if (cpid4 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
new cpid5 = SetPlayerCheckpoint(playerid,2776.7856, 1257.4076, 16.9512,4.0);
if (cpid5 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
new cpid6 = SetPlayerCheckpoint(playerid,1958.6522, 1943.2184, 22.2268,4.0);
if (cpid6 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
new cpid7 = SetPlayerCheckpoint(playerid,-1389.2230, 673.6660, 2.2660,4.0);
if (cpid7 == 1)
{
DisablePlayerCheckpoint(playerid);
PlayerInfo[giveplayerid][stuntPoint] +=20;
GameTextForPlayer(playerid, "~r~Stunt Finished~n~~y~+10 Coins~n~~y~+20 Stunt Point", 3000, 3);
}
return 1;
}[/pawn]
Si asta-i comanda.
[pawn]CMD:setstunt(playerid, params[])
{
if(IsPlayerAdmin(playerid) == 0) return SendClientMessage(playerid, RED, "ERROR: Only admins can use that command!");
if(sscanf(params, "ud", giveplayerid, stunt1)) return SendClientMessage(playerid, RED, "");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "ERROR: That player is not connected!");
new stun[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(giveplayerid, Global_Name, sizeof(Global_Name));GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(stun,sizeof(stun),PlayerStun,Name);
format(sstring, sizeof(sstring), "You have succesfully setted %s Stunt Point to %d!", Global_Name, stunt1);
SendClientMessage(playerid, BLUE, sstring);
format(sstring, sizeof(sstring), "Admin %s has setted your Stunt Point to %d!", Name, stunt1);
SendClientMessage(giveplayerid, BLUE, sstring);
PlayerInfo[giveplayerid][stuntPoint] = stunt1;
dini_IntSet(stun,"StuntPoint:", PlayerInfo[giveplayerid][stuntPoint]);
return 1;
}[/pawn]
Ai incercat sa rezolvi singur ?:Nam incercat pentru ca nu stiu carei problema..
Sunt un retardat
Link to comment
Share on other sites
10 answers to this question
Recommended Posts