02.04.2009, 21:05
Quote:
Originally Posted by ♣ ⓐⓢⓢ
Quote:
case 0..50: {} or if you want to do it in an array new Array[50] = {0, 1, 2, ...}; |
Originally Posted by ♣ ⓐⓢⓢ
Quote:
case 0..50: {} or if you want to do it in an array new Array[50] = {0, 1, 2, ...}; |
Originally Posted by Aoi_Rikuto
I would like something like this:
GTA:SARP - Fart-bomb I would like a GodFather script without the admin system. Any help would be appreciated! Also: If anyone wants to help me script, I will gladly appreciate it! There is one thing though. I am too young to have a credit card so unfortunately I cannot pay. If you still want to just for the fun of it send me a message please. |
Originally Posted by Dreftas
Does anyone know how to "scan" specific folder with dini for all files ?
For example, I want to scan folder "Example". Then in all founded files i want to get integer "value", and then all those values plus each other. How to do that? |
Originally Posted by ♣ ⓐⓢⓢ
Quote:
|
Originally Posted by Dreftas
Scan - check every file in that folder and then check every founded file for line "value=number"...
|
Originally Posted by DeathGod
all i want is a simple /seeweap and it shows the target ids weaps
|
if(strcmp(cmd, "/checkweaps", true) == 0) { if (PlayerInfo[playerid][pAdmin] < 1337) { SendClientMessage(playerid, COLOR_GREY, " You cannot use this command."); return 1; } tmp = strtok(cmdtext,idx); if (!strlen(tmp)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /checkweaps [playerid/partOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if (giveplayerid == INVALID_PLAYER_ID) { SendClientMessage(playerid, COLOR_GREY, "That player is offline"); return 1; } new sweapon, sammo; GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "%s has gun id :", giveplayer); SendClientMessage(playerid, COLOR_GRAD1, string); for (new i=0; i<9; i++) { GetPlayerWeaponData(giveplayerid, i, sweapon, sammo); if(sweapon != 0) { format(string, sizeof(string), "%d: %d (ammo : %d)", i, sweapon, sammo); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } |
Originally Posted by kingcesar
Quote:
|
Originally Posted by kingcesar
Could you help me? About How to make the /gamble command
I really want to know how to make that command, because I had try many method already I can't make that command. - - Please Help me. Sorry for my bad English, I'm Thai. |
Originally Posted by backwardsman97
You're english is good. Alot better then some of the other ones around here. What exactly do you want the command to do? |
//////////////////////////////////////////////////////////////////////////////// PAYDAY + AITOMESSAGE public Timer(playerid) { SendClientMessageToAll(COLOR_YELLOW, "Please Visit us here at, Kontrol-Gaming.co.cc"); // Color can be edited, Look at top for the colors. SendClientMessageToAll(COLOR_YELLOW, " Please remember to report any bugs you may find, /Bug <Message>"); for(new a=0; a<MAX_PLAYERS; a++) { GivePlayerMoney(a, 1000); } SendClientMessageToAll(COLOR_LIGHTGREEN, "You've recieved playing money **$1000**!"); }