- 0
help OnPlayerUpdate...
-
Similar Content
-
- 0 answers
- 558 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
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!
4 answers to this question
Recommended Posts