- 0
help OnPlayerUpdate...
-
Similar Content
-
- 2 answers
- 856 views
-
- 4 replies
- 408 views
-
- 5 replies
- 309 views
-
- 2 answers
- 350 views
-
- 6 replies
- 801 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
xxSPEEDYxx
Sall all deci am fakt azi ceva td-uri care arata cat coins ai cat dm score ai etc...
si am pus la onplayerupdate asa:
[pawn]
public OnPlayerUpdate(playerid)
{
if(TextDrawSetString(DMScoreP, dmstrg))
{
format(dmstrg, 56, "%d",pInfo[playerid][Dmp]);
}
if(TextDrawSetString(RScoreP, rstrg))
{
format(rstrg, 56, "%d",pInfo[playerid][Rap]);
}
if(TextDrawSetString(CoinsP, cstrg))
{
format(cstrg, 56, "%d",pInfo[playerid][Coins]);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 651.9136,-2825.4656,46.4523))
{
SpawnPlayer(playerid);
GameTextForPlayer(playerid,"You finished the MAZE!!",5000,5);
GivePlayerMoney(playerid, 1000);
pInfo[playerid][Coins] += 5;
SendClientMessage(playerid,-1,"You will receive $50.000 and 5 coins!");
SetPVarInt(playerid,"InMaze",0);
}
return 1;
}
[/pawn]
am incercat n metode ca sa apara acolo cat coins si dm score am dat nu imi apare pls help!!:(nush ce are...
Fara reclama in semnatura!
Link to comment
Share on other sites
4 answers to this question
Recommended Posts